FAILURE: Build failed with an exception.
BUILD FAILED
* What went wrong:
Total time: 4.015 secsA problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:2.0.0+.
Required by:
:android:unspecified
> No cached version listing for com.android.tools.build:gradle:2.0.0+ 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.
C:\Users\heshan\AppData\Local\Temp\e693c655-dd3c-4e2b-b5c9-81059efdaa6d\pack.xml:88: exec returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643) D:\WeX5_V3.6\model\Native\test\build\src\platforms\android\cordova\node_modules\q\q.js:126
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
throw e;
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495) ^
Error code 1 for command: cmd with args: /s /c "D:\WeX5_V3.6\model\Native\test\build\src\platforms\android\gradlew cdvBuildRelease -b D:\WeX5_V3.6\model\Native\test\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
You may not have the required environment or OS to build this project
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Error: cmd: Command failed with exit code 1
at java.lang.reflect.Method.invoke(Method.java:497)
****ERROR****: 子任务 "exec" 执行失败。
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)****ERROR****: 任务 "buildAndroid" 执行失败。
at org.apache.tools.ant.Task.perform(Task.java:348)****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
at org.apache.tools.ant.Target.execute(Target.java:435)****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
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
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html