Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

gradle - Execution failed for task :processDebugResources [ Cordova / Ionic ]

I have created an application with Cordova and Ionic. I received Application build success on iOS.

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

I have downloaded / updated every version of build-tools I can from the Android SDK Manager

Build-tools

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.

Here is my system configuration :

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 :

I really hope someone will help me ! ;)

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Solved by rename every filename who content a special character (image but also html template, javascript file, css)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...