Son*_*nce 6 android gradle cordova
我刚刚在我的膝盖上放了一个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
Run Code Online (Sandbox Code Playgroud)
我一直在谷歌搜索并通过堆栈进行了很好的搜索,大多数回复都说要做一个干净的重建.我已经做了几次现在没有运气,我已经检查过,我已经安装了所有的SDK /工具等.
有任何想法吗?任何帮助将非常感激!
小智 0
我遇到了同样的问题,因为我在创建设备时删除了 1.5 GB android 安装库。几周后,我尝试在 Android 上运行,但出现相同的错误消息。只需打开 avd 并删除所有设备,重新安装您需要测试的设备即可。
https://developer.android.com/studio/run/managing-avds.html
归档时间: |
|
查看次数: |
779 次 |
最近记录: |