【发布时间】:2016-10-18 03:08:43
【问题描述】:
我用 Cordova 和 Ionic 创建了一个应用程序。 我在 iOS 上收到应用程序构建成功。
我正在尝试在 Android 上构建此应用程序(通过 cordova build android)
我有这个错误:
:processDebugResources FAILED
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/me/Library/Android/sdk/build-tools/24.0.0/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: 3.937 secs
Error: Error code 1 for command: /Users/me/Desktop/Développement/Multi-plateforme/myApp/platforms/android/gradlew with args: cdvBuildD
我已经从 Android SDK 管理器下载/更新了每个版本的构建工具
我还验证了该项目不包含“/www/”目录中的“node_modules”或“bower_modules”文件夹以及项目中每个图像的扩展名+名称。
这是我的系统配置:
Cordova CLI: 6.2.0
Ionic Framework Version: 1.3.1
Ionic CLI Version: 1.7.15
Ionic App Lib Version: 0.7.2
ios-deploy version: 1.8.5
ios-sim version: 3.1.1
OS: Mac OS X El Capitan
Node Version: v4.1.2
Xcode version: Xcode 7.3 Build version 7D175
这是我在写这个问题之前检查过的主题:
Cordova build android error Execution failed for task ':processDebugResources'
Android: Execution failed for task ':app:processDebugResources'
Error:Execution failed for task ':app:processDebugResources'.
我真的希望有人能帮助我! ;)
【问题讨论】:
-
你能显示堆栈跟踪吗?
-
--stacktrace 没有提供更多信息
-
谢谢,您关于删除 bower_components 的提示对我有用
标签: cordova gradle build ionic-framework