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

QQ登录

只需一步,快速开始

查看: 2207|回复: 4

[处理中3] 任务 "buildAndroid" 执行失败。

[复制链接]

34

主题

93

帖子

319

积分

中级会员

Rank: 3Rank: 3

积分
319
QQ
发表于 2017-11-17 01:16:13 | 显示全部楼层 |阅读模式
  1. 生成android应用包:
  2.       Running command: cmd "/s /c "I:\WeX5_V3.7\model\Native\娣花椋庢儏\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
  3.       ANDROID_HOME=I:\WeX5_V3.7\tools\adt-sdk
  4.       JAVA_HOME=I:\WeX5_V3.7\java\jre1.8
  5.       Running: I:\WeX5_V3.7\model\Native\娣花椋庢儏\build\src\platforms\android\gradlew cdvBuildDebug -b I:\WeX5_V3.7\model\Native\娣花椋庢儏\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
  6.       Starting a Gradle Daemon (subsequent builds will be faster)
  7.       NDK is missing a "platforms" directory.
  8.       If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to I:\WeX5_V3.7\tools\adt-sdk\ndk-bundle.
  9.       If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
  10.       
  11.       The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
  12.               at build_9bgoau0ni0peukleawdp17rmk.run(I:\WeX5_V3.7\model\Native\淮滨风情\build\src\platforms\android\build.gradle:154)
  13.       WARNING: The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process.
  14.       NDK is missing a "platforms" directory.
  15.       If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to I:\WeX5_V3.7\tools\adt-sdk\ndk-bundle.
  16.       If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
  17.       
  18.       NDK is missing a "platforms" directory.
  19.       If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to I:\WeX5_V3.7\tools\adt-sdk\ndk-bundle.
  20.       If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
  21.       
  22.       Incremental java compilation is an incubating feature.
  23.       :preBuild UP-TO-DATE
  24.       :preDebugBuild UP-TO-DATE
  25.       :checkDebugManifest
  26.       :preReleaseBuild UP-TO-DATE
  27.       :prepareComAndroidSupportAnimatedVectorDrawable2530Library
  28.       :prepareComAndroidSupportAppcompatV72530Library
  29.       :preDebugAndroidTestBuild UP-TO-DATE
  30.       :prepareComAndroidSupportMultidex101Library
  31.       :prepareComAndroidSupportSupportCompat2530Library
  32.       :prepareComAndroidSupportSupportCoreUi2530Library
  33.       :prepareComAndroidSupportSupportCoreUtils2530Library
  34.       :prepareComAndroidSupportSupportFragment2530Library
  35.       :prepareComAndroidSupportSupportMediaCompat2530Library
  36.       :prepareComAndroidSupportSupportV42530Library
  37.       :prepareComAndroidSupportSupportVectorDrawable2530Library
  38.       :prepareComLegendmoheMavenPermissionutil02Library
  39.       :CordovaLib:preBuild UP-TO-DATE
  40.       :CordovaLib:preDebugBuild UP-TO-DATE
  41.       :CordovaLib:checkDebugManifest
  42.       :CordovaLib:preDebugAndroidTestBuild UP-TO-DATE
  43.       :CordovaLib:preDebugUnitTestBuild UP-TO-DATE
  44.       :CordovaLib:preReleaseBuild UP-TO-DATE
  45.       :CordovaLib:preReleaseUnitTestBuild UP-TO-DATE
  46.       :CordovaLib:prepareComAndroidSupportAnimatedVectorDrawable2530Library
  47.       :CordovaLib:prepareComAndroidSupportAppcompatV72530Library
  48.       :CordovaLib:prepareComAndroidSupportSupportCompat2530Library
  49.       :CordovaLib:prepareComAndroidSupportSupportCoreUi2530Library
  50.       :CordovaLib:prepareComAndroidSupportSupportCoreUtils2530Library
  51.       :CordovaLib:prepareComAndroidSupportSupportFragment2530Library
  52.       :CordovaLib:prepareComAndroidSupportSupportMediaCompat2530Library
  53.       :CordovaLib:prepareComAndroidSupportSupportV42530Library
  54.       :CordovaLib:prepareComAndroidSupportSupportVectorDrawable2530Library
  55.       :JustepGetContent:preBuild UP-TO-DATE
  56.       :JustepGetContent:preReleaseBuild UP-TO-DATE
  57.       :JustepGetContent:checkReleaseManifest
  58.       :JustepGetContent:preDebugAndroidTestBuild UP-TO-DATE
  59.       :JustepGetContent:preDebugBuild UP-TO-DATE
  60.       :JustepGetContent:preDebugUnitTestBuild UP-TO-DATE
  61.       :JustepGetContent:preReleaseUnitTestBuild UP-TO-DATE
  62.       :JustepGetContent:prepareComAndroidSupportAnimatedVectorDrawable2530Library
  63.       :JustepGetContent:prepareComAndroidSupportAppcompatV72530Library
  64.       :JustepGetContent:prepareComAndroidSupportSupportCompat2530Library
  65.       :JustepGetContent:prepareComAndroidSupportSupportCoreUi2530Library
  66.       :JustepGetContent:prepareComAndroidSupportSupportCoreUtils2530Library
  67.       :JustepGetContent:prepareComAndroidSupportSupportFragment2530Library
  68.       :JustepGetContent:prepareComAndroidSupportSupportMediaCompat2530Library
  69.       :JustepGetContent:prepareComAndroidSupportSupportV42530Library
  70.       :JustepGetContent:prepareComAndroidSupportSupportVectorDrawable2530Library
  71.       :JustepGetContent:prepareReleaseDependencies
  72.       :JustepGetContent:compileReleaseAidl
  73.       :JustepGetContent:compileReleaseNdk UP-TO-DATE
  74.       :JustepGetContent:compileLint
  75.       :JustepGetContent:copyReleaseLint UP-TO-DATE
  76.       :JustepGetContent:compileReleaseRenderscript
  77.       :JustepGetContent:generateReleaseBuildConfig
  78.       :JustepGetContent:generateReleaseResValues
  79.       :JustepGetContent:generateReleaseResources
  80.       :JustepGetContent:mergeReleaseResources
  81.       :JustepGetContent:processReleaseManifest
  82.       :JustepGetContent:processReleaseResources
  83.       :JustepGetContent:generateReleaseSources
  84.       :JustepGetContent:incrementalReleaseJavaCompilationSafeguard
  85.       :JustepGetContent:javaPreCompileRelease
  86.       :JustepGetContent:compileReleaseJavaWithJavac
  87.       :JustepGetContent:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
  88.       注: 某些输入文件使用或覆盖了已过时的 API。
  89.       注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  90.       注: I:\WeX5_V3.7\model\Native\淮滨风情\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使用了未经检查或不安全的操作。
  91.       
  92.       
复制代码


34

主题

93

帖子

319

积分

中级会员

Rank: 3Rank: 3

积分
319
QQ
 楼主| 发表于 2017-11-17 01:16:41 | 显示全部楼层
  1. 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
  2.       :JustepGetContent:extractReleaseAnnotations
  3.       :JustepGetContent:mergeReleaseShaders
  4.       :JustepGetContent:compileReleaseShaders
  5.       :JustepGetContent:generateReleaseAssets
  6.       :JustepGetContent:mergeReleaseAssets
  7.       :JustepGetContent:mergeReleaseProguardFiles
  8.       :JustepGetContent:packageReleaseRenderscript UP-TO-DATE
  9.       :JustepGetContent:packageReleaseResources
  10.       :JustepGetContent:processReleaseJavaRes UP-TO-DATE
  11.       :JustepGetContent:transformResourcesWithMergeJavaResForRelease
  12.       :JustepGetContent:transformClassesAndResourcesWithSyncLibJarsForRelease
  13.       :JustepGetContent:mergeReleaseJniLibFolders
  14.       :JustepGetContent:transformNativeLibsWithMergeJniLibsForRelease
  15.       :JustepGetContent:transformNativeLibsWithSyncJniLibsForRelease
  16.       :JustepGetContent:bundleRelease
  17.       :CordovaLib:prepareDebugDependencies
  18.       :CordovaLib:compileDebugAidl
  19.       :CordovaLib:compileDebugNdk UP-TO-DATE
  20.       :CordovaLib:compileLint
  21.       :CordovaLib:copyDebugLint UP-TO-DATE
  22.       :CordovaLib:compileDebugRenderscript
  23.       :CordovaLib:generateDebugBuildConfig
  24.       :CordovaLib:generateDebugResValues
  25.       :CordovaLib:generateDebugResources
  26.       :CordovaLib:mergeDebugResources
  27.       :CordovaLib:processDebugManifest
  28.       :CordovaLib:processDebugResources
  29.       :CordovaLib:generateDebugSources
  30.       :CordovaLib:incrementalDebugJavaCompilationSafeguard
  31.       :CordovaLib:javaPreCompileDebug
  32.       :CordovaLib:compileDebugJavaWithJavac
  33.       :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
  34.       注: 某些输入文件使用或覆盖了已过时的 API。
  35.       注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  36.       :CordovaLib:extractDebugAnnotations
  37.       :CordovaLib:mergeDebugShaders
  38.       :CordovaLib:compileDebugShaders
  39.       :CordovaLib:generateDebugAssets
  40.       :CordovaLib:mergeDebugAssets
  41.       :CordovaLib:mergeDebugProguardFiles
  42.       :CordovaLib:packageDebugRenderscript UP-TO-DATE
  43.       :CordovaLib:packageDebugResources
  44.       :CordovaLib:processDebugJavaRes UP-TO-DATE
  45.       :CordovaLib:transformResourcesWithMergeJavaResForDebug
  46.       :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
  47.       :CordovaLib:mergeDebugJniLibFolders
  48.       :CordovaLib:transformNativeLibsWithMergeJniLibsForDebug
  49.       :CordovaLib:transformNativeLibsWithSyncJniLibsForDebug
  50.       :CordovaLib:bundleDebug
  51.       :prepareDebugDependencies
  52.       :compileDebugAidl
  53.       :compileDebugRenderscript
  54.       :generateDebugBuildConfig
  55.       :generateDebugResValues
  56.       :generateDebugResources
  57.       :mergeDebugResources
  58.       :processDebugManifest
  59.       :processDebugResources
  60.       :generateDebugSources
  61.       :incrementalDebugJavaCompilationSafeguard
  62.       :javaPreCompileDebug
  63.       :compileDebugJavaWithJavac
  64.       :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
  65.       I:\WeX5_V3.7\model\Native\淮滨风情\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:122: 错误: 方法不会覆盖或实现超类型的方法
  66.         @Override
  67.         ^
  68.       I:\WeX5_V3.7\model\Native\淮滨风情\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:144: 错误: 找不到符号
  69.               if(!cordova.hasPermission(Manifest.permission.ACCESS_FINE_LOCATION)){
  70.                          ^
  71.         符号:   方法 hasPermission(String)
  72.         位置: 类型为CordovaInterface的变量 cordova
  73.       I:\WeX5_V3.7\model\Native\淮滨风情\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:148: 错误: 找不到符号
  74.               if(!cordova.hasPermission(Manifest.permission.ACCESS_COARSE_LOCATION)){
  75.                          ^
  76.         符号:   方法 hasPermission(String)
  77.         位置: 类型为CordovaInterface的变量 cordova
  78.       I:\WeX5_V3.7\model\Native\淮滨风情\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:155: 错误: 找不到符号
  79.                 cordova.requestPermissions(this, 0, permissions);
  80.                        ^
  81.         符号:   方法 requestPermissions(BaiduLocation,int,String[])
  82.         位置: 类型为CordovaInterface的变量 cordova
  83.       注: 某些输入文件使用或覆盖了已过时的 API。
  84.       :compileDebugJavaWithJavac FAILED
  85.       注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  86.       
  87.       BUILD FAILED
  88.       注: 某些输入文件使用了未经检查或不安全的操作。
  89.       
  90.       Total time: 1 mins 10.945 secs注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
  91. 4 个错误

  92. FAILURE: Build failed with an exception.

  93. * What went wrong:
  94. Execution failed for task ':compileDebugJavaWithJavac'.
  95. > Compilation failed; see the compiler error output for details.

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

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


回复 支持 反对

使用道具 举报

发表于 2017-11-17 10:25:22 | 显示全部楼层

BaiduLocation  插件存在bug
http://docs.wex5.com/wex5-app-question-list-2106/

请重新下载
com.justep.cordova.plugin.baidulocation
替换本地插件
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

34

主题

93

帖子

319

积分

中级会员

Rank: 3Rank: 3

积分
319
QQ
 楼主| 发表于 2017-11-18 01:34:38 | 显示全部楼层
liangyongfei 发表于 2017-11-17 10:25
BaiduLocation  插件存在bug
http://docs.wex5.com/wex5-app-question-list-2106/

哥,这个我已经下载覆盖了的,还是报这个错误!
回复 支持 反对

使用道具 举报

发表于 2017-11-20 10:03:06 | 显示全部楼层
jkewajj 发表于 2017-11-18 01:34
哥,这个我已经下载覆盖了的,还是报这个错误!

有可能真的是我哪儿上传错了!@!
你在这儿重新下载吧!  我今天有空重新上传下!
http://bbs.wex5.com/forum.php?mo ... 7&pid=165502863
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-29 18:59 , Processed in 0.112362 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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