|
发表于 2016-8-28 21:37:46
|
显示全部楼层
build/src/platforms/android/build.gradle -Dorg.gradle.daemon=true --offline
BUILD FAILED
Total time: 1.144 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: /Users/fengwenkai/Documents/software/WeX5_V3.5-mac/model/Native/外卖/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
/Users/fengwenkai/Documents/software/WeX5_V3.5-mac/model/Native/外卖/build/src/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/fengwenkai/Documents/software/WeX5_V3.5-mac/model/Native/外卖/build/src/platforms/android/gradlew with args: cdvBuildRelease,-b,/Users/fengwenkai/Documents/software/WeX5_V3.5-mac/model/Native/外卖/build/src/platforms/android/build.gradle,-Dorg.gradle.daemon=true,--offline
Error: /Users/fengwenkai/Documents/software/WeX5_V3.5-mac/model/Native/外卖/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
这个错误,刚开始使用wex5应该都会报这个错误,我看了一下帖子,也确实有很多出现这个错误的,但是好像没有人给解决一下。谢谢 |
|