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

QQ登录

只需一步,快速开始

查看: 2179|回复: 2

[处理中3] 打包APP 出错

[复制链接]

1

主题

2

帖子

6

积分

新手上路

Rank: 1

积分
6
QQ
发表于 2016-8-5 09:23:24 | 显示全部楼层 |阅读模式
后台报错信息如下:
2016-08-05 08:46:42 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO: Running command: cmd "/s /c "D:\softs\Wex5\WeX5_V3.5\model\Native\hello\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
2016-08-05 08:46:45 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO: ANDROID_HOME=D:\softs\Wex5\WeX5_V3.5\tools\adt-sdk
2016-08-05 08:46:45 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO: JAVA_HOME=D:\softs\Wex5\WeX5_V3.5\java\jre1.8
2016-08-05 08:46:45 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO: Running: D:\softs\Wex5\WeX5_V3.5\model\Native\hello\build\src\platforms\android\gradlew cdvBuildDebug -b D:\softs\Wex5\WeX5_V3.5\model\Native\hello\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
2016-08-05 08:46:54 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO: Starting a new Gradle Daemon for this build (subsequent builds will be faster).
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:
2016-08-05 08:46:57 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO: FAILURE: Build failed with an exception.
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO: BUILD FAILED
2016-08-05 08:46:57 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO:
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:
2016-08-05 08:46:57 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO: * What went wrong:
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO: Total time: 12.025 secs
2016-08-05 08:46:57 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO: A problem occurred configuring root project 'android'.
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO: > Could not resolve all dependencies for configuration ':classpath'.
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:    > Could not resolve com.android.tools.build:gradle:2.0.0+.
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:      Required by:
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:          :android:unspecified
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:       > No cached version listing for com.android.tools.build:gradle:2.0.0+ available for offline mode.
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO: * Try:
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO: D:\softs\Wex5\WeX5_V3.5\model\Native\hello\build\src\platforms\android\cordova\node_modules\q\q.js:126
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:                     throw e;
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO:                     ^
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO: Error code 1 for command: cmd with args: /s /c "D:\softs\Wex5\WeX5_V3.5\model\Native\hello\build\src\platforms\android\gradlew cdvBuildDebug -b D:\softs\Wex5\WeX5_V3.5\model\Native\hello\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
2016-08-05 08:46:57 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO: ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
2016-08-05 08:46:57 [Thread-45] [org.apache.tools.ant.taskdefs.ExecTask] INFO: You may not have the required environment or OS to build this project
2016-08-05 08:46:57 [Thread-46] [org.apache.tools.ant.taskdefs.ExecTask] INFO: Error: cmd: Command failed with exit code 1
2016-08-05 08:46:57 [Thread-40] [org.apache.tools.ant.UnknownElement] ERROR: Task "exec" finished with error.
C:\Users\BHome\AppData\Local\Temp\x5app-build2892271319724237028.xml:814: 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.GeneratedMethodAccessor21.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 Pack.execTask(Pack.java:51)
        at Pack.access$000(Pack.java:25)
        at Pack$1.run(Pack.java:96)
        at java.lang.Thread.run(Thread.java:745)
2016-08-05 08:46:57 [Thread-40] [org.apache.tools.ant.Target] ERROR: Target "buildAndroid" finished with error.
C:\Users\BHome\AppData\Local\Temp\x5app-build2892271319724237028.xml:814: 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.GeneratedMethodAccessor21.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 Pack.execTask(Pack.java:51)
        at Pack.access$000(Pack.java:25)
        at Pack$1.run(Pack.java:96)
        at java.lang.Thread.run(Thread.java:745)
2016-08-05 08:46:57 [Thread-40] [org.apache.tools.ant.Project] ERROR: Build finished with error.
C:\Users\BHome\AppData\Local\Temp\x5app-build2892271319724237028.xml:814: 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.GeneratedMethodAccessor21.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 Pack.execTask(Pack.java:51)
        at Pack.access$000(Pack.java:25)
        at Pack$1.run(Pack.java:96)
        at java.lang.Thread.run(Thread.java:745)
操作系统中有设置java_Home 的环境变量。

1

主题

2

帖子

6

积分

新手上路

Rank: 1

积分
6
QQ
 楼主| 发表于 2016-8-5 09:29:56 | 显示全部楼层
是否错误信息不够全
回复 支持 反对

使用道具 举报

发表于 2016-8-5 15:39:27 | 显示全部楼层
看上去像是这个错误:http://doc.wex5.com/wex5-app-question-list-0004/
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-25 12:06 , Processed in 0.051079 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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