任务执行失败:processDebugResources [Cordova/Ionic] [英] Execution failed for task :processDebugResources [ Cordova / Ionic ]
问题描述
我使用 Cordova 和 Ionic 创建了一个应用程序.我在 iOS 上收到了应用程序构建成功.
I have created an application with Cordova and Ionic. I received Application build success on iOS.
我正在尝试在 Android 上构建此应用程序(通过 cordova build android
)我有这个错误:
I am trying to build this application on Android (via cordova build android
)
I have this error :
: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 管理器下载/更新了每个版本的构建工具
I have downloaded / updated every version of build-tools I can from the Android SDK Manager
我还验证了该项目不包含/www/
"目录中的node_modules
"或bower_modules
"文件夹,并且项目中每个图像的扩展名 + 名称.
I also verified that the project doesn't content "node_modules
" or "bower_modules
" folders in "/www/
" directory and the extension + name of every single image in the project.
这是我的系统配置:
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
以下是我在写这个问题之前检查过的主题:
Here are the topics I've checked before writing this question :
Android:任务:app:processDebugResources"执行失败一个>
错误:任务:app:processDebugResources"的执行失败.
ionic run android: Build failed with an exception
我真的希望有人能帮助我!;)
I really hope someone will help me ! ;)
推荐答案
通过重命名每个包含特殊字符的文件名解决(图像也包括 html 模板、javascript 文件、css)
Solved by rename every filename who content a special character (image but also html template, javascript file, css)
这篇关于任务执行失败:processDebugResources [Cordova/Ionic]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!