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

QQ登录

只需一步,快速开始

查看: 3967|回复: 0

[未处理] 安卓打包问题

[复制链接]

16

主题

41

帖子

167

积分

初级会员

Rank: 2

积分
167
QQ
发表于 2021-3-16 14:51:18 | 显示全部楼层 |阅读模式
见如下错误:


生成android应用包:
      
      You have been opted out of telemetry. To change this, run: cordova telemetry on.
      args.nofetch undefined
      android project rename compelete!!!!!!
      ANDROID_HOME=D:\Programs\WeX5_V3.9\tools\adt-sdk
      JAVA_HOME=D:\Programs\WeX5_V3.9\java\jre1.8
      Parallel execution with configuration on demand is an incubating feature.
      :wrapper
      
      BUILD SUCCESSFUL
      
      Total time: 3.702 secs
      Subproject Path: CordovaLib
      Subproject Path: JustepGetContent
      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 D:\Programs\WeX5_V3.9\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_e91boh36nuza1lmezdupi9qt6.run(D:\Programs\WeX5_V3.9\model\Native\CM锟斤拷锟斤拷\build\src\platforms\android\build.gradle:150)
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      A problem occurred configuring root project 'android'.
      > Could not resolve all dependencies for configuration ':_debugApk'.
         > A problem occurred configuring project ':CordovaLib'.
            > Could not resolve all files for configuration ':CordovaLib:classpath'.
               > Could not download android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5): No cached version available for offline mode
               > Could not download gradle-bintray-plugin.jar (com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3): No cached version available for offline mode
               > Could not download backport-util-concurrent.jar (backport-util-concurrent:backport-util-concurrent:3.1): No cached version available for offline mode
               > Could not download maven-profile.jar (org.apache.maven:maven-profile:2.2.1): No cached version available for offline mode
               > Could not download maven-plugin-registry.jar (org.apache.maven:maven-plugin-registry:2.2.1): No cached version available for offline mode
               > Could not download wagon-http-shared.jar (org.apache.maven.wagon:wagon-http-shared:1.0-beta-6): No cached version available for offline mode
               > Could not download xml-apis.jar (xml-apis:xml-apis:1.3.04): No cached version available for offline mode
               > Could not download xercesMinimal.jar (nekohtml:xercesMinimal:1.9.6.2): No cached version available for offline mode
               > Could not download nekohtml.jar (nekohtml:nekohtml:1.9.6.2): No cached version available for offline mode
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      Error: cmd: Command failed with exit code 1 Error output:
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      A problem occurred configuring root project 'android'.
      > Could not resolve all dependencies for configuration ':_debugApk'.
         > A problem occurred configuring project ':CordovaLib'.
            > Could not resolve all files for configuration ':CordovaLib:classpath'.
               > Could not download android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5): No cached version available for offline mode
               > Could not download gradle-bintray-plugin.jar (com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3): No cached version available for offline mode
               > Could not download nekohtml.jar (nekohtml:nekohtml:1.9.6.2): No cached version available for offline mode
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   ****ERROR****: 子任务 "exec" 执行失败。
   ****ERROR****: 任务 "buildAndroid" 执行失败。
   ****ERROR****: 执行出错:
   ****ERROR****: 错误信息: exec returned: 1
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
   C:\Users\jinan.li\AppData\Local\Temp\b716f30a-df6e-4fcc-9aae-b41e23c9948a\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)
           at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
           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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-5 14:21 , Processed in 0.057953 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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