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

QQ登录

只需一步,快速开始

查看: 4975|回复: 10

[处理中3] 部署,打包编译失败,,这是什么原因?

[复制链接]

34

主题

93

帖子

319

积分

中级会员

Rank: 3Rank: 3

积分
319
QQ
发表于 2017-10-7 23:07:34 | 显示全部楼层 |阅读模式
  1. 增加插件:
  2.       使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, com.justep.cordova.plugin.engine.tencent, cordova-plugin-x-toast, cordova-plugin-inappbrowser, cordova-plugin-app-version, com.justep.cordova.plugin.baidulocation, cordova-plugin-keyboard, cordova-plugin-spinner-dialog, cordova-plugin-geolocation, cordova-plugin-file, ch.ti8m.documenthandler, cordova-plugin-file-transfer]
  3.       开始安装插件......
  4.       开始准备插件参数......
  5.       插件 "cordova-plugin-splashscreen" 参数如下:
  6.       插件 "cordova-plugin-app-preferences" 参数如下:
  7.       插件 "cordova-plugin-file" 参数如下:
  8.       插件 "cordova-plugin-file-transfer" 参数如下:
  9.            请求访问相册时的提示(TRANSFER_PHOTOLIBRARY_USAGE_DESCRIPTION):App需要您的同意才可以访问相册
  10.       插件 "cordova-plugin-network-information" 参数如下:
  11.       插件 "cordova-plugin-zip" 参数如下:
  12.       插件 "cordova-plugin-inappbrowser" 参数如下:
  13.       插件 "cordova-plugin-x-toast" 参数如下:
  14.       插件 "com.justep.cordova.plugin.app.utils" 参数如下:
  15.       插件 "com.justep.cordova.plugin.engine.tencent" 参数如下:
  16.            引擎选择方式(webViewEngine):auto
  17.       插件 "cordova-plugin-app-version" 参数如下:
  18.       插件 "com.justep.cordova.plugin.baidulocation" 参数如下:
  19.       插件 "cordova-plugin-keyboard" 参数如下:
  20.       插件 "cordova-plugin-spinner-dialog" 参数如下:
  21.       插件 "cordova-plugin-geolocation" 参数如下:
  22.            百度定位SDK开发秘钥,AK的申请地址为:http://lbsyun.baidu.com/apiconsole/key(android_AK):iOxsL9Z27dKiNtY5s4m8vRjUyZiNwZOC
  23.       插件 "ch.ti8m.documenthandler" 参数如下:
  24.       插件参数准备完成
  25.       Installing "cordova-plugin-splashscreen" for android
  26.       Installing "cordova-plugin-splashscreen" for ios
  27.       Installing "cordova-plugin-app-preferences" for android
  28.       Installing "cordova-plugin-app-preferences" for ios
  29.       Installing "cordova-plugin-file" for android
  30.       Installing "cordova-plugin-file" for ios
  31.       Installing "cordova-plugin-file-transfer" for android
  32.       Dependent plugin "cordova-plugin-file" already installed on android.
  33.       Installing "cordova-plugin-file-transfer" for ios
  34.       Dependent plugin "cordova-plugin-file" already installed on ios.
  35.       Installing "cordova-plugin-network-information" for android
  36.       Installing "cordova-plugin-network-information" for ios
  37.       Installing "cordova-plugin-zip" for android
  38.       Dependent plugin "cordova-plugin-file" already installed on android.
  39.       Installing "cordova-plugin-zip" for ios
  40.       Dependent plugin "cordova-plugin-file" already installed on ios.
  41.       Installing "cordova-plugin-inappbrowser" for android
  42.       Installing "cordova-plugin-inappbrowser" for ios
  43.       Installing "cordova-plugin-x-toast" for android
  44.       Installing "cordova-plugin-x-toast" for ios
  45.       Installing "com.justep.cordova.plugin.app.utils" for android
  46.       Dependent plugin "cordova-plugin-file" already installed on android.
  47.       Dependent plugin "cordova-plugin-file-transfer" already installed on android.
  48.       Dependent plugin "cordova-plugin-network-information" already installed on android.
  49.       Dependent plugin "cordova-plugin-zip" already installed on android.
  50.       Dependent plugin "cordova-plugin-inappbrowser" already installed on android.
  51.       Dependent plugin "cordova-plugin-x-toast" already installed on android.
  52.       Installing "com.justep.cordova.plugin.app.utils" for ios
  53.       Dependent plugin "cordova-plugin-file" already installed on ios.
  54.       Dependent plugin "cordova-plugin-file-transfer" already installed on ios.
  55.       Dependent plugin "cordova-plugin-network-information" already installed on ios.
  56.       Dependent plugin "cordova-plugin-zip" already installed on ios.
  57.       Dependent plugin "cordova-plugin-inappbrowser" already installed on ios.
  58.       Dependent plugin "cordova-plugin-x-toast" already installed on ios.
  59.       Installing "com.justep.cordova.plugin.engine.tencent" for android
  60.       Installing "com.justep.cordova.plugin.engine.tencent" for ios
  61.       Installing "cordova-plugin-app-version" for android
  62.       Installing "cordova-plugin-app-version" for ios
  63.       Installing "com.justep.cordova.plugin.baidulocation" for android
  64.       Installing "com.justep.cordova.plugin.baidulocation" for ios
  65.       Installing "cordova-plugin-keyboard" for android
  66.       Installing "cordova-plugin-keyboard" for ios
  67.       Installing "cordova-plugin-spinner-dialog" for android
  68.       Installing "cordova-plugin-spinner-dialog" for ios
  69.       Installing "cordova-plugin-geolocation" for android
  70.       Dependent plugin "com.justep.cordova.plugin.baidulocation" already installed on android.
  71.       Installing "cordova-plugin-geolocation" for ios
  72.       Dependent plugin "com.justep.cordova.plugin.baidulocation" already installed on ios.
  73.       Installing "ch.ti8m.documenthandler" for android
  74.       Installing "ch.ti8m.documenthandler" for ios
  75.       插件安装完成
  76.       
  77.    创建源代码工程:
  78.       
  79.    生成源代码:
  80.       
  81.    完成。
复制代码

34

主题

93

帖子

319

积分

中级会员

Rank: 3Rank: 3

积分
319
QQ
 楼主| 发表于 2017-10-7 23:08:32 | 显示全部楼层
  1. 环境初始化:
  2.    
  3.    开始......
  4.       
  5.    生成应用环境准备:
  6.       
  7.    android应用环境准备:
  8.       
  9.    ios应用环境准备:
  10.       
  11.    生成android应用包:
  12.       Running command: cmd "/s /c "E:\wex5\model\Native\oosip\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
  13.       ANDROID_HOME=E:\wex5\tools\adt-sdk
  14.       JAVA_HOME=E:\wex5\java\jre1.8
  15.       Running: E:\wex5\model\Native\oosip\build\src\platforms\android\gradlew cdvBuildDebug -b E:\wex5\model\Native\oosip\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
  16.       Starting a Gradle Daemon (subsequent builds will be faster)
  17.       NDK is missing a "platforms" directory.
  18.       If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to E:\wex5\tools\adt-sdk\ndk-bundle.
  19.       If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
  20.       
  21.       The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
  22.               at build_6ky3oco9fanln0bqyh0mz2829.run(E:\wex5\model\Native\oosip\build\src\platforms\android\build.gradle:154)
  23.       WARNING: The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process.
  24.       NDK is missing a "platforms" directory.
  25.       If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to E:\wex5\tools\adt-sdk\ndk-bundle.
  26.       If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
  27.       
  28.       NDK is missing a "platforms" directory.
  29.       If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to E:\wex5\tools\adt-sdk\ndk-bundle.
  30.       If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
  31.       
  32.       Incremental java compilation is an incubating feature.
  33.       :preBuild UP-TO-DATE
  34.       :preDebugBuild UP-TO-DATE
  35.       :checkDebugManifest
  36.       :preReleaseBuild UP-TO-DATE
  37.       :prepareComAndroidSupportAnimatedVectorDrawable2530Library
  38.       :prepareComAndroidSupportAppcompatV72530Library
  39.       :preDebugAndroidTestBuild UP-TO-DATE
  40.       :prepareComAndroidSupportMultidex101Library
  41.       :prepareComAndroidSupportSupportCompat2530Library
  42.       :prepareComAndroidSupportSupportCoreUi2530Library
  43.       :prepareComAndroidSupportSupportCoreUtils2530Library
  44.       :prepareComAndroidSupportSupportFragment2530Library
  45.       :prepareComAndroidSupportSupportMediaCompat2530Library
  46.       :prepareComAndroidSupportSupportV42530Library
  47.       :prepareComAndroidSupportSupportVectorDrawable2530Library
  48.       :prepareComLegendmoheMavenPermissionutil02Library
  49.       :CordovaLib:preBuild UP-TO-DATE
  50.       :CordovaLib:preDebugBuild UP-TO-DATE
  51.       :CordovaLib:checkDebugManifest
  52.       :CordovaLib:preDebugAndroidTestBuild UP-TO-DATE
  53.       :CordovaLib:preDebugUnitTestBuild UP-TO-DATE
  54.       :CordovaLib:preReleaseBuild UP-TO-DATE
  55.       :CordovaLib:preReleaseUnitTestBuild UP-TO-DATE
  56.       :CordovaLib:prepareComAndroidSupportAnimatedVectorDrawable2530Library
  57.       :CordovaLib:prepareComAndroidSupportAppcompatV72530Library
  58.       :CordovaLib:prepareComAndroidSupportSupportCompat2530Library
  59.       :CordovaLib:prepareComAndroidSupportSupportCoreUi2530Library
  60.       :CordovaLib:prepareComAndroidSupportSupportCoreUtils2530Library
  61.       :CordovaLib:prepareComAndroidSupportSupportFragment2530Library
  62.       :CordovaLib:prepareComAndroidSupportSupportMediaCompat2530Library
  63.       :CordovaLib:prepareComAndroidSupportSupportV42530Library
  64.       :CordovaLib:prepareComAndroidSupportSupportVectorDrawable2530Library
  65.       :JustepGetContent:preBuild UP-TO-DATE
  66.       :JustepGetContent:preReleaseBuild UP-TO-DATE
  67.       :JustepGetContent:checkReleaseManifest
  68.       :JustepGetContent:preDebugAndroidTestBuild UP-TO-DATE
  69.       :JustepGetContent:preDebugBuild UP-TO-DATE
  70.       :JustepGetContent:preDebugUnitTestBuild UP-TO-DATE
  71.       :JustepGetContent:preReleaseUnitTestBuild UP-TO-DATE
  72.       :JustepGetContent:prepareComAndroidSupportAnimatedVectorDrawable2530Library
  73.       :JustepGetContent:prepareComAndroidSupportAppcompatV72530Library
  74.       :JustepGetContent:prepareComAndroidSupportSupportCompat2530Library
  75.       :JustepGetContent:prepareComAndroidSupportSupportCoreUi2530Library
  76.       :JustepGetContent:prepareComAndroidSupportSupportCoreUtils2530Library
  77.       :JustepGetContent:prepareComAndroidSupportSupportFragment2530Library
  78.       :JustepGetContent:prepareComAndroidSupportSupportMediaCompat2530Library
  79.       :JustepGetContent:prepareComAndroidSupportSupportV42530Library
  80.       :JustepGetContent:prepareComAndroidSupportSupportVectorDrawable2530Library
  81.       :JustepGetContent:prepareReleaseDependencies
  82.       :JustepGetContent:compileReleaseAidl
  83.       :JustepGetContent:compileReleaseNdk UP-TO-DATE
  84.       :JustepGetContent:compileLint
  85.       :JustepGetContent:copyReleaseLint UP-TO-DATE
  86.       :JustepGetContent:compileReleaseRenderscript
  87.       :JustepGetContent:generateReleaseBuildConfig
  88.       :JustepGetContent:generateReleaseResValues
  89.       :JustepGetContent:generateReleaseResources
  90.       :JustepGetContent:mergeReleaseResources
  91.       :JustepGetContent:processReleaseManifest
  92.       :JustepGetContent:processReleaseResources
  93.       :JustepGetContent:generateReleaseSources
  94.       :JustepGetContent:incrementalReleaseJavaCompilationSafeguard
  95.       :JustepGetContent:javaPreCompileRelease
  96.       :JustepGetContent:compileReleaseJavaWithJavac
  97.       :JustepGetContent:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
  98.       注: 某些输入文件使用或覆盖了已过时的 API。
  99.       注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  100.       注: E:\wex5\model\Native\oosip\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使用了未经检查或不安全的操作。
  101.       注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
  102.       :JustepGetContent:extractReleaseAnnotations
  103.       :JustepGetContent:mergeReleaseShaders
  104.       :JustepGetContent:compileReleaseShaders
  105.       :JustepGetContent:generateReleaseAssets
  106.       :JustepGetContent:mergeReleaseAssets
  107.       :JustepGetContent:mergeReleaseProguardFiles
  108.       :JustepGetContent:packageReleaseRenderscript UP-TO-DATE
  109.       :JustepGetContent:packageReleaseResources
  110.       :JustepGetContent:processReleaseJavaRes UP-TO-DATE
  111.       :JustepGetContent:transformResourcesWithMergeJavaResForRelease
  112.       :JustepGetContent:transformClassesAndResourcesWithSyncLibJarsForRelease
  113.       :JustepGetContent:mergeReleaseJniLibFolders
  114.       :JustepGetContent:transformNativeLibsWithMergeJniLibsForRelease
  115.       :JustepGetContent:transformNativeLibsWithSyncJniLibsForRelease
  116.       :JustepGetContent:bundleRelease
  117.       :CordovaLib:prepareDebugDependencies
  118.       :CordovaLib:compileDebugAidl
  119.       :CordovaLib:compileDebugNdk UP-TO-DATE
  120.       :CordovaLib:compileLint
  121.       :CordovaLib:copyDebugLint UP-TO-DATE
  122.       :CordovaLib:compileDebugRenderscript
  123.       :CordovaLib:generateDebugBuildConfig
  124.       :CordovaLib:generateDebugResValues
  125.       :CordovaLib:generateDebugResources
  126.       :CordovaLib:mergeDebugResources
  127.       :CordovaLib:processDebugManifest
  128.       :CordovaLib:processDebugResources
  129.       :CordovaLib:generateDebugSources
  130.       :CordovaLib:incrementalDebugJavaCompilationSafeguard
  131.       :CordovaLib:javaPreCompileDebug
  132.       :CordovaLib:compileDebugJavaWithJavac
  133.       :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
复制代码

回复 支持 反对

使用道具 举报

34

主题

93

帖子

319

积分

中级会员

Rank: 3Rank: 3

积分
319
QQ
 楼主| 发表于 2017-10-7 23:08:49 | 显示全部楼层
  1. 注: 某些输入文件使用或覆盖了已过时的 API。
  2. 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  3. :CordovaLib:extractDebugAnnotations
  4. :CordovaLib:mergeDebugShaders
  5. :CordovaLib:compileDebugShaders
  6. :CordovaLib:generateDebugAssets
  7. :CordovaLib:mergeDebugAssets
  8. :CordovaLib:mergeDebugProguardFiles
  9. :CordovaLib:packageDebugRenderscript UP-TO-DATE
  10. :CordovaLib:packageDebugResources
  11. :CordovaLib:processDebugJavaRes UP-TO-DATE
  12. :CordovaLib:transformResourcesWithMergeJavaResForDebug
  13. :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
  14. :CordovaLib:mergeDebugJniLibFolders
  15. :CordovaLib:transformNativeLibsWithMergeJniLibsForDebug
  16. :CordovaLib:transformNativeLibsWithSyncJniLibsForDebug
  17. :CordovaLib:bundleDebug
  18. :prepareDebugDependencies
  19. :compileDebugAidl
  20. :compileDebugRenderscript
  21. :generateDebugBuildConfig
  22. :generateDebugResValues
  23. :generateDebugResources
  24. :mergeDebugResources
  25. :processDebugManifest
  26. :processDebugResources
  27. :generateDebugSources
  28. :incrementalDebugJavaCompilationSafeguard
  29. :javaPreCompileDebug
  30. :compileDebugJavaWithJavac
  31. :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
  32. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
  33. LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
  34. ^
  35. 符号: 类 LocationManager
  36. 位置: 类 BaiduLocation
  37. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
  38. LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
  39. ^
  40. 符号: 类 LocationManager
  41. 位置: 类 BaiduLocation
  42. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
  43. LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
  44. ^
  45. 符号: 变量 Context
  46. 位置: 类 BaiduLocation
  47. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:161: 错误: 找不到符号
  48. if(myLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){
  49. ^
  50. 符号: 变量 LocationManager
  51. 位置: 类 BaiduLocation
  52. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:167: 错误: 程序包Settings不存在
  53. int state = Settings.Secure.getInt(cordova.getActivity().getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
  54. ^
  55. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:167: 错误: 程序包Settings不存在
  56. int state = Settings.Secure.getInt(cordova.getActivity().getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
  57. ^
  58. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:167: 错误: 程序包Settings不存在
  59. int state = Settings.Secure.getInt(cordova.getActivity().getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
  60. ^
  61. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:168: 错误: 程序包Settings不存在
  62. if (state == Settings.Secure.LOCATION_MODE_OFF) {
  63. ^
  64. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
  65. Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
  66. ^
  67. 符号: 类 Intent
  68. 位置: 类 BaiduLocation
  69. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
  70. Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
  71. ^
  72. 符号: 类 Intent
  73. 位置: 类 BaiduLocation
  74. E:\wex5\model\Native\oosip\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
  75. Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
  76. ^
  77. 符号: 变量 Settings
  78. 位置: 类 BaiduLocation
  79. 注: 某些输入文件使用或覆盖了已过时的 API。
  80. 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  81. 注: 某些输入文件使用了未经检查或不安全的操作。
  82. 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
  83. 11 个错误
  84. :compileDebugJavaWithJavac FAILED

  85. BUILD FAILED

  86. Total time: 2 mins 37.899 secs

  87. FAILURE: Build failed with an exception.

  88. * What went wrong:
  89. Execution failed for task ':compileDebugJavaWithJavac'.
  90. > Compilation failed; see the compiler error output for details.

  91. * Try:
  92. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  93. E:\wex5\model\Native\oosip\build\src\platforms\android\cordova\node_modules\q\q.js:126
  94. throw e;
  95. ^
  96. Error code 1 for command: cmd with args: /s /c "E:\wex5\model\Native\oosip\build\src\platforms\android\gradlew cdvBuildDebug -b E:\wex5\model\Native\oosip\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
  97. ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
  98. You may not have the required environment or OS to build this project
  99. Error: cmd: Command failed with exit code 1
  100. C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\8d024991-8f49-4210-b08d-888eb0587219\pack.xml:91: exec returned: 1
  101. at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
  102. at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
  103. at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
  104. at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
  105. at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  106. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  107. at java.lang.reflect.Method.invoke(Method.java:497)
  108. at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  109. at org.apache.tools.ant.Task.perform(Task.java:348)
  110. at org.apache.tools.ant.Target.execute(Target.java:435)
  111. at org.apache.tools.ant.Target.performTasks(Target.java:456)
  112. at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
  113. at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
  114. at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
  115. at com.justep.deploy.app.utils.Builder.main(Unknown Source)
  116. ****ERROR****: 子任务 "exec" 执行失败。
  117. ****ERROR****: 任务 "buildAndroid" 执行失败。
  118. ****ERROR****: 执行出错:
  119. ****ERROR****: 错误信息: exec returned: 1
  120. ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
  121. ****ERROR****: 子任务 "java" 执行失败。
  122. ****ERROR****: 任务 "pack" 执行失败。
  123. ****ERROR****: 执行出错:
  124. ****ERROR****: 错误信息: Java returned: -3
  125. ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
复制代码


回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36183
发表于 2017-10-12 17:06:01 | 显示全部楼层
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

34

主题

93

帖子

319

积分

中级会员

Rank: 3Rank: 3

积分
319
QQ
 楼主| 发表于 2017-10-29 20:31:47 | 显示全部楼层
jishuang 发表于 2017-10-12 17:06
http://bbs.wex5.com/forum.php?mod=redirect&goto=findpost&ptid=180045&pid=165489564


替换一下下面的文件重新打包看看
/Native/plugins/com.justep.cordova.plugin.baidulocation/src/android/BaiduLocation.java

BaiduLocation.java

替换后依然提示错误,只要不适用百度定位插件 就OK,,,,,,设么原因啊???
最重要的是   外卖deom  也调用了百度地图插件  打包的时候就没问题?
回复 支持 反对

使用道具 举报

发表于 2017-10-30 16:43:18 | 显示全部楼层
jkewajj 发表于 2017-10-29 20:31
替换一下下面的文件重新打包看看
/Native/plugins/com.justep.cordova.plugin.baidulocation/src/androi ...

你看下版本号是多少?应该是插件有bug

http://bbs.wex5.com/forum.php?mo ... 7&pid=165502863
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

34

主题

93

帖子

319

积分

中级会员

Rank: 3Rank: 3

积分
319
QQ
 楼主| 发表于 2017-10-30 22:46:20 | 显示全部楼层
liangyongfei 发表于 2017-10-30 16:43
你看下版本号是多少?应该是插件有bug

http://bbs.wex5.com/forum.php?mod=redirect&goto=findpost&p ...

版本号是 5.3.7.6161
也按照帖子说明 替换了
com.justep.cordova.plugin.baidulocation.rar
还是失败,我甚至重新下载了,版本号也没更新??
奇怪的是  外卖案例 也引用了.cordova 定位插件,为什么打包就OK呢?
回复 支持 反对

使用道具 举报

发表于 2017-10-31 10:14:51 | 显示全部楼层
jkewajj 发表于 2017-10-30 22:46
版本号是 5.3.7.6161
也按照帖子说明 替换了
com.justep.cordova.plugin.baidulocation.rar

替换  com.justep.cordova.plugin.baidulocation  以后!打包报错还和之前一样的吗??
外卖案例看下这个插件是打包进去的了吧!
如果打包进去了,说明就是没问题的!插件正常

没替换以前外卖肯定打包也不正常的吧!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

34

主题

93

帖子

319

积分

中级会员

Rank: 3Rank: 3

积分
319
QQ
 楼主| 发表于 2017-10-31 13:15:15 | 显示全部楼层
刚刚又测试了一,详细情况如下:1、版本号是:5.3.7.6161

088.png

2、按照这个帖子,下载了这个附件。解压到WeX5\model\Native\plugins 目录下



3、页面引入插件:
        require("cordova!cordova-plugin-geolocation");
        require("cordova!com.justep.cordova.plugin.baidulocation");

00.png
-------------(以上是一样的,下面操作不一样)---------------



打包(只选择cordova-plugin-geolocation)
360截图20171031124410826.png


360截图20171031124516531.png


打包成功!


打包选择(cordova-plugin-geolocation  和  cordova-plugin-background-geolocation)
003.png


0031.png

打包失败!
多选了cordova-plugin-background-geolocation 这个插件


错误代码如下:
  1.   生成android应用包:
  2.       Running command: cmd "/s /c "I:\WeX5\model\Native\娣花椋庢儏\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
  3.       ANDROID_HOME=I:\WeX5\tools\adt-sdk
  4.       JAVA_HOME=I:\WeX5\java\jre1.8
  5.       Running: I:\WeX5\model\Native\娣花椋庢儏\build\src\platforms\android\gradlew cdvBuildDebug -b I:\WeX5\model\Native\娣花椋庢儏\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
  6.       NDK is missing a "platforms" directory.
  7.       If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to I:\WeX5\tools\adt-sdk\ndk-bundle.
  8.       If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
  9.       
  10.       The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
  11.               at build_8dyb1lqwkttteutwxn9s6bg13.run(I:\WeX5\model\Native\淮滨风情\build\src\platforms\android\build.gradle:155)
  12.       WARNING: The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process.
  13.       NDK is missing a "platforms" directory.
  14.       If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to I:\WeX5\tools\adt-sdk\ndk-bundle.
  15.       If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
  16.       
  17.       NDK is missing a "platforms" directory.
  18.       If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to I:\WeX5\tools\adt-sdk\ndk-bundle.
  19.       If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
  20.       
  21.       Incremental java compilation is an incubating feature.
  22.       
  23.       
  24.       BUILD FAILEDFAILURE: Build failed with an exception.
  25.       
  26.       
  27.       
  28.       Total time: 20.543 secs* What went wrong:
  29.       
  30.       A problem occurred configuring root project 'android'.
  31.       > Could not resolve all dependencies for configuration ':_debugApkCopy'.
  32.          > Could not resolve com.github.tony19:logback-android-core:1.1.1-6.
  33.            Required by:
  34.                project :
  35.             > No cached version of com.github.tony19:logback-android-core:1.1.1-6 available for offline mode.
  36.             > No cached version of com.github.tony19:logback-android-core:1.1.1-6 available for offline mode.
  37.          > Could not resolve com.github.tony19:logback-android-classic:1.1.1-6.
  38.            Required by:
  39.                project :
  40.             > No cached version of com.github.tony19:logback-android-classic:1.1.1-6 available for offline mode.
  41.             > No cached version of com.github.tony19:logback-android-classic:1.1.1-6 available for offline mode.
  42.          > Could not resolve org.slf4j:slf4j-api:1.7.21.
  43.            Required by:
  44.                project :
  45.             > No cached version of org.slf4j:slf4j-api:1.7.21 available for offline mode.
  46.             > No cached version of org.slf4j:slf4j-api:1.7.21 available for offline mode.
  47.          > Could not resolve com.google.android.gms:play-services-location:+.
  48.            Required by:
  49.                project :
  50.             > No cached version listing for com.google.android.gms:play-services-location:+ available for offline mode.
  51.             > No cached version listing for com.google.android.gms:play-services-location:+ available for offline mode.
  52.       
  53.       * Try:
  54.       Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  55.       ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
  56.       You may not have the required environment or OS to build this project
  57.       
  58.       I:\WeX5\model\Native\娣花椋庢儏\build\src\platforms\android\cordova\node_modules\q\q.js:126
  59.                           throw e;
  60.                           ^
  61.       Error code 1 for command: cmd with args: /s /c "I:\WeX5\model\Native\娣花椋庢儏\build\src\platforms\android\gradlew cdvBuildDebug -b I:\WeX5\model\Native\娣花椋庢儏\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
  62.       Error: cmd: Command failed with exit code 1
  63.    ****ERROR****: 子任务 "exec" 执行失败。
  64.    ****ERROR****: 任务 "buildAndroid" 执行失败。
  65.    ****ERROR****: 执行出错:
  66.    ****ERROR****: 错误信息: exec returned: 1
  67.    ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
  68.    C:\Users\Administrator\AppData\Local\Temp\3babb1c3-c514-4b03-aed0-28c2951bd2d2\pack.xml:91: exec returned: 1
  69.            at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
  70.            at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
  71.            at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
  72.            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
  73.            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  74.            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  75.            at java.lang.reflect.Method.invoke(Method.java:497)
  76.            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  77.            at org.apache.tools.ant.Task.perform(Task.java:348)
  78.            at org.apache.tools.ant.Target.execute(Target.java:435)
  79.            at org.apache.tools.ant.Target.performTasks(Target.java:456)
  80.            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
  81.            at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
  82.            at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
  83.            at com.justep.deploy.app.utils.Builder.main(Unknown Source)
  84. ****ERROR****: 子任务 "java" 执行失败。
  85. ****ERROR****: 任务 "pack" 执行失败。
  86. ****ERROR****: 执行出错:
  87. ****ERROR****: 错误信息: Java returned: -3
  88. ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
复制代码





回复 支持 反对

使用道具 举报

34

主题

93

帖子

319

积分

中级会员

Rank: 3Rank: 3

积分
319
QQ
 楼主| 发表于 2017-10-31 13:26:18 | 显示全部楼层
liangyongfei 发表于 2017-10-31 10:14
替换  com.justep.cordova.plugin.baidulocation  以后!打包报错还和之前一样的吗??
外卖案例看下这个 ...

问一下:我只需要 获取到 设备所在  省、市、县、然后用户发表时候,显示发表所在位置:  省、市、县

我引用了这两个插件
00.png


下面打包的时
搜索 geolocatio
会出来两
地理位置 cordova!cordova-plugin-geolocatio
后台定位后台定位插件 cordova!cordova-plugin-background-geolocatio


搜索不到:cordova!com.justep.cordova.plugin.baidulocation 这个插件,
还是这个插件属于geolocatio包含的?必须要搜索出来吗?
WeX5\model\Native\plugins 文件夹内 确认有cordova!com.justep.cordova.plugin.baidulocation





我搜索百度,会出来下面这些....IOS  安卓 都要定位,我该怎么选择插件?
999.png

回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-7-1 17:34 , Processed in 0.090004 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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