繁体   English   中英

Cordova Android - ERROR构建其中一个平台:命令的错误代码1:

[英]Cordova Android - ERROR building one of the platforms: Error code 1 for command:

我刚刚在我的膝盖上放了一个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

我一直在谷歌搜索并通过堆栈进行了很好的搜索,大多数回复都说要做一个干净的重建。 我已经做了几次现在没有运气,我已经检查过,我已经安装了所有的SDK /工具等。

有任何想法吗? 任何帮助将非常感激!

我遇到了同样的问题,因为我在创建设备时删除了1.5 GB的android安装库。 几个星期后,我只是尝试在Android上运行相同的错误消息。 只需打开avd并删除所有设备,重新安装需要测试的设备。

https://developer.android.com/studio/run/managing-avds.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM