后台报错信息如下:
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 的环境变量。