|
BUILD FAILED
Total time: 1.475 secs
FAILURE: Build failed with an exception.
* What went wrong:
A 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.
ERROR building one of the platforms: Error: /wex5/model/Native/hello/build/src/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
/wex5/model/Native/hello/build/src/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /wex5/model/Native/hello/build/src/platforms/android/gradlew with args: cdvBuildDebug,-b,/wex5/model/Native/hello/build/src/platforms/android/build.gradle,-Dorg.gradle.daemon=true,--offline
Error: /wex5/model/Native/hello/build/src/platforms/android/cordova/build: Command failed with exit code 1
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
在windows上测试过正常,在mac上各种问题。好像在官方集锦的打包问题里没发现类似的解决方案。
|
|