我刚刚在我的膝盖上放了一个Cordova项目,我的任务是构建应用程序并将它们放到商店上。 iOS运行良好,但现在我已经在Android上打了一堵墙。
所以,每次我构建 - 通过运行cordova build android - 我得到以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/sprince/Library/Android/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 8.432 secs
ERROR building one of the platforms: Error code 1 for command: /Users/sprince/Documents/Projects/ProjName/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/sprince/Documents/Projects/ProjName/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
Error: Error code 1 for command: /Users/sprince/Documents/Projects/ProjName/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/sprince/Documents/Projects/ProjName/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
我一直在谷歌搜索并通过Stack进行了很好的搜索,大多数回复都说要做一个干净的重建。我已经做了几次现在没有运气,我已经检查过,我已经安装了所有的SDK /工具等。
有什么想法吗?任何帮助将不胜感激!
答案 0 :(得分:0)
我遇到了同样的问题,因为我在创建设备时删除了1.5 GB的android安装库。几个星期后,我只是尝试在Android上运行相同的错误消息。只需打开avd并删除所有设备,重新安装需要测试的设备。