起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1631|回复: 2

[结贴] 3.7打包报错

[复制链接]

186

主题

1012

帖子

1663

积分

金牌会员

Rank: 6Rank: 6

积分
1663
QQ
发表于 2018-1-11 17:55:18 | 显示全部楼层 |阅读模式
环境初始化:      开始......         生成应用环境准备:         android应用环境准备:         ios应用环境准备:         生成android应用包:      Running command: cmd "/s /c "G:\WeX5_V3.7_CRK\model\Native\鐢垫\build\src\platforms\android\cordova\build.bat --debug""      ANDROID_HOME=G:\WeX5_V3.7_CRK\tools\adt-sdk      JAVA_HOME=G:\WeX5_V3.7_CRK\java\jre1.8      Running: G:\WeX5_V3.7_CRK\model\Native\鐢垫\build\src\platforms\android\gradlew cdvBuildDebug -b G:\WeX5_V3.7_CRK\model\Native\鐢垫\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true      NDK is missing a "platforms" directory.      If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to G:\WeX5_V3.7_CRK\tools\adt-sdk\ndk-bundle.      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.            The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.              at build_2u3xq73u15r1zpz69j67skh44.run(G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\build.gradle:155)      WARNING: The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process.      NDK is missing a "platforms" directory.      If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to G:\WeX5_V3.7_CRK\tools\adt-sdk\ndk-bundle.      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.            NDK is missing a "platforms" directory.      If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to G:\WeX5_V3.7_CRK\tools\adt-sdk\ndk-bundle.      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.            Incremental java compilation is an incubating feature.      :preBuild UP-TO-DATE      :preDebugBuild UP-TO-DATE      :checkDebugManifest      :preReleaseBuild UP-TO-DATE      :prepareComAndroidSupportAnimatedVectorDrawable2530Library      :prepareComAndroidSupportAppcompatV72530Library      :preDebugAndroidTestBuild UP-TO-DATE      :prepareComAndroidSupportMultidex101Library      :prepareComAndroidSupportSupportCompat2530Library      :prepareComAndroidSupportSupportCoreUi2530Library      :prepareComAndroidSupportSupportCoreUtils2530Library      :prepareComAndroidSupportSupportFragment2530Library      :prepareComAndroidSupportSupportMediaCompat2530Library      :prepareComAndroidSupportSupportV42530Library      :prepareComAndroidSupportSupportVectorDrawable2530Library      :prepareComLegendmoheMavenPermissionutil02Library      :prepareLibZBarDebugLibrary      :prepareZBarBuildDebugLibrary      :CordovaLib:preBuild UP-TO-DATE      :CordovaLib:preDebugBuild UP-TO-DATE      :CordovaLib:checkDebugManifest      :CordovaLib:preDebugAndroidTestBuild UP-TO-DATE      :CordovaLib:preDebugUnitTestBuild UP-TO-DATE      :CordovaLib:preReleaseBuild UP-TO-DATE      :CordovaLib:preReleaseUnitTestBuild UP-TO-DATE      :CordovaLib:prepareComAndroidSupportAnimatedVectorDrawable2530Library      :CordovaLib:prepareComAndroidSupportAppcompatV72530Library      :CordovaLib:prepareComAndroidSupportSupportCompat2530Library      :CordovaLib:prepareComAndroidSupportSupportCoreUi2530Library      :CordovaLib:prepareComAndroidSupportSupportCoreUtils2530Library      :CordovaLib:prepareComAndroidSupportSupportFragment2530Library      :CordovaLib:prepareComAndroidSupportSupportMediaCompat2530Library      :CordovaLib:prepareComAndroidSupportSupportV42530Library      :CordovaLib:prepareComAndroidSupportSupportVectorDrawable2530Library      :JustepGetContent:preBuild UP-TO-DATE      :JustepGetContent:preReleaseBuild UP-TO-DATE      :JustepGetContent:checkReleaseManifest      :JustepGetContent:preDebugAndroidTestBuild UP-TO-DATE      :JustepGetContent:preDebugBuild UP-TO-DATE      :JustepGetContent:preDebugUnitTestBuild UP-TO-DATE      :JustepGetContent:preReleaseUnitTestBuild UP-TO-DATE      :JustepGetContent:prepareComAndroidSupportAnimatedVectorDrawable2530Library      :JustepGetContent:prepareComAndroidSupportAppcompatV72530Library      :JustepGetContent:prepareComAndroidSupportSupportCompat2530Library      :JustepGetContent:prepareComAndroidSupportSupportCoreUi2530Library      :JustepGetContent:prepareComAndroidSupportSupportCoreUtils2530Library      :JustepGetContent:prepareComAndroidSupportSupportFragment2530Library      :JustepGetContent:prepareComAndroidSupportSupportMediaCompat2530Library      :JustepGetContent:prepareComAndroidSupportSupportV42530Library      :JustepGetContent:prepareComAndroidSupportSupportVectorDrawable2530Library      :JustepGetContent:prepareReleaseDependencies      :JustepGetContent:compileReleaseAidl      :JustepGetContent:compileReleaseNdk UP-TO-DATE      :JustepGetContent:compileLint      :JustepGetContent:copyReleaseLint UP-TO-DATE      :JustepGetContent:compileReleaseRenderscript      :JustepGetContent:generateReleaseBuildConfig      :JustepGetContent:generateReleaseResValues      :JustepGetContent:generateReleaseResources      :JustepGetContent:mergeReleaseResources      :JustepGetContent:processReleaseManifest      :JustepGetContent:processReleaseResources      :JustepGetContent:generateReleaseSources      :JustepGetContent:incrementalReleaseJavaCompilationSafeguard      :JustepGetContent:javaPreCompileRelease      :JustepGetContent:compileReleaseJavaWithJavac      :JustepGetContent:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).      注: 某些输入文件使用或覆盖了已过时的 API。      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。      注: G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使用了未经检查或不安全的操作。      注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。      :JustepGetContent:extractReleaseAnnotations      :JustepGetContent:mergeReleaseShaders      :JustepGetContent:compileReleaseShaders      :JustepGetContent:generateReleaseAssets      :JustepGetContent:mergeReleaseAssets      :JustepGetContent:mergeReleaseProguardFiles      :JustepGetContent:packageReleaseRenderscript UP-TO-DATE      :JustepGetContent:packageReleaseResources      :JustepGetContent:processReleaseJavaRes UP-TO-DATE      :JustepGetContent:transformResourcesWithMergeJavaResForRelease      :JustepGetContent:transformClassesAndResourcesWithSyncLibJarsForRelease      :JustepGetContent:mergeReleaseJniLibFolders      :JustepGetContent:transformNativeLibsWithMergeJniLibsForRelease      :JustepGetContent:transformNativeLibsWithSyncJniLibsForRelease      :JustepGetContent:bundleRelease      :CordovaLib:prepareDebugDependencies      :CordovaLib:compileDebugAidl      :CordovaLib:compileDebugNdk UP-TO-DATE      :CordovaLib:compileLint      :CordovaLib:copyDebugLint UP-TO-DATE      :CordovaLib:compileDebugRenderscript      :CordovaLib:generateDebugBuildConfig      :CordovaLib:generateDebugResValues      :CordovaLib:generateDebugResources      :CordovaLib:mergeDebugResources      :CordovaLib:processDebugManifest      :CordovaLib:processDebugResources      :CordovaLib:generateDebugSources      :CordovaLib:incrementalDebugJavaCompilationSafeguard      :CordovaLib:javaPreCompileDebug      :CordovaLib:compileDebugJavaWithJavac      :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).      注: 某些输入文件使用或覆盖了已过时的 API。      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。      :CordovaLib:extractDebugAnnotations      :CordovaLib:mergeDebugShaders      :CordovaLib:compileDebugShaders      :CordovaLib:generateDebugAssets      :CordovaLib:mergeDebugAssets      :CordovaLib:mergeDebugProguardFiles      :CordovaLib:packageDebugRenderscript UP-TO-DATE      :CordovaLib:packageDebugResources      :CordovaLib:processDebugJavaRes UP-TO-DATE      :CordovaLib:transformResourcesWithMergeJavaResForDebug      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug      :CordovaLib:mergeDebugJniLibFolders      :CordovaLib:transformNativeLibsWithMergeJniLibsForDebug      :CordovaLib:transformNativeLibsWithSyncJniLibsForDebug      :CordovaLib:bundleDebug      :prepareDebugDependencies      :compileDebugAidl      :compileDebugRenderscript      :generateDebugBuildConfig      :generateDebugResValues      :generateDebugResources      :mergeDebugResources      :processDebugManifest      :processDebugResources      :generateDebugSources      :incrementalDebugJavaCompilationSafeguard      :javaPreCompileDebug      :compileDebugJavaWithJavac      :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).     

186

主题

1012

帖子

1663

积分

金牌会员

Rank: 6Rank: 6

积分
1663
QQ
 楼主| 发表于 2018-1-11 17:55:35 | 显示全部楼层
G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
              LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
              ^
        符号:   类 LocationManager
        位置: 类 BaiduLocation
      G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
              LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
                                                   ^
        符号:   类 LocationManager
        位置: 类 BaiduLocation
      G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
              LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
                                                                                                           ^
        符号:   变量 Context
        位置: 类 BaiduLocation
      G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:161: 错误: 找不到符号
              if(myLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){
                                                     ^
        符号:   变量 LocationManager
        位置: 类 BaiduLocation
      G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:167: 错误: 程序包Settings不存在
              int state = Settings.Secure.getInt(cordova.getActivity().getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
                                                                                                     ^
      G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:167: 错误: 程序包Settings不存在
              int state = Settings.Secure.getInt(cordova.getActivity().getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
                                                                                                                                    ^
      G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:167: 错误: 程序包Settings不存在
              int state = Settings.Secure.getInt(cordova.getActivity().getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
                                  ^
      G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:168: 错误: 程序包Settings不存在
              if (state == Settings.Secure.LOCATION_MODE_OFF) {
                                   ^
      G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
            Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
            ^
        符号:   类 Intent
        位置: 类 BaiduLocation
      G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
            Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
                                ^
        符号:   类 Intent
        位置: 类 BaiduLocation
      G:\WeX5_V3.7_CRK\model\Native\电梯\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
            Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
                                       ^
        符号:   变量 Settings
        位置: 类 BaiduLocation
      :compileDebugJavaWithJavac FAILED
      
      BUILD FAILED
      
      Total time: 26.258 secs
      注: 某些输入文件使用或覆盖了已过时的 API。
      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
      注: 某些输入文件使用了未经检查或不安全的操作。
      注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
      11 个错误
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':compileDebugJavaWithJavac'.
      > Compilation failed; see the compiler error output for details.
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      G:\WeX5_V3.7_CRK\model\Native\鐢垫\build\src\platforms\android\cordova\node_modules\q\q.js:126
                          throw e;
                          ^
      Error code 1 for command: cmd with args: /s /c "G:\WeX5_V3.7_CRK\model\Native\鐢垫\build\src\platforms\android\gradlew cdvBuildDebug -b G:\WeX5_V3.7_CRK\model\Native\鐢垫\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true"
      ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
      You may not have the required environment or OS to build this project
      Error: cmd: Command failed with exit code 1
   C:\Users\PANPIN~1\AppData\Local\Temp\10187e0a-ad47-4848-9855-a90f97bff002\pack.xml:91: exec returned: 1
           at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
           at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
   ****ERROR****: 子任务 "exec" 执行失败。
   ****ERROR****: 任务 "buildAndroid" 执行失败。
   ****ERROR****: 执行出错:
           at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)****ERROR****: 错误信息: exec returned: 1
   
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
           at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:497)
           at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
           at org.apache.tools.ant.Task.perform(Task.java:348)
           at org.apache.tools.ant.Target.execute(Target.java:435)
           at org.apache.tools.ant.Target.performTasks(Target.java:456)
           at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
           at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
           at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
           at com.justep.deploy.app.utils.Builder.main(Unknown Source)
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

186

主题

1012

帖子

1663

积分

金牌会员

Rank: 6Rank: 6

积分
1663
QQ
 楼主| 发表于 2018-1-12 09:33:36 | 显示全部楼层
解决了,是百度地图插件坏了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-6-26 09:53 , Processed in 0.057152 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表