IONIC 3: Execution failed for task ':app:processDebugResources'

IONIC 3: Execution failed for task ':app:processDebugResources'

execution failed for task ' processdebugresources'. cordova
failed to execute aapt ionic 3
execution failed for task ':app:fabricgenerateresourcesdebug'. ionic 4
execution failed for task ':app:transformdexarchivewithexternallibsdexmergerfordebug ionic 3
execution failed for task ':app:transformclasseswithdexbuilderfordebug ionic 3
execution failed for task ':app:processdebugresources'. > android resource linking failed
execution failed for task app processdebugresources android resource linking failed ionic 3
execution failed for task ' processdebugresources'. ionic 4

Execution failed for task ':app:processDebugResources'.

This error comes when execute "ionic cordova build android". Searched for a long time but no luck. Anyone can help?

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 4m 18s
(node:9516) [DEP0018] DeprecationWarning: Unhandled promise rejections are 
deprecated. In the future, promise rejections that are not handled will 
terminate the Node.js process with a non-zero exit code.`

run into the same error. found this solution to fix it:

https://stackoverflow.com/a/49172982/7655348

Replace com.android.support:support-v4:+ with com.android.support:support-v4:27.1.0 in project.properties file under platform/android folder

Execution failed for task ':app:processDebugResources' · Issue , Failed to execute aapt * Try: Run with --stacktrace o Are you running ionic cordova build android or cordova build android (directly)?; What exactly have you tried to resolve this issue? Link to the @ionic/cli-utils : 1.19.3 Ionic 3 – Resolve “Execution failed for task ‘:app:processDebugResources’.”. During development Ionic 3 project when I added Ionic Native File Opener plugin I faced the following issue during building android apk. FAILURE: Build failed with an exception.


I know it's a very late answer, incase someone still facing this issues in 2019.

It's caused due to gradle, add this gradle support plugin and it should be fine:

cordova plugin add cordova-android-support-gradle-release

FAILURE: Build failed with an exception, Ionic version: (check one with "x") (For Ionic 1.x issues, please use https://github.​com/ionic-team/ionic-v1) [ ] 2.x [ x ] 3.x [ ] 4.x I'm submitting a . I am trying to run the following command: ionic cordova run android but this throw me the following error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processDebugResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt


Also this solution worked for me:

https://forum.ionicframework.com/t/failed-build-for-android-execution-failed-for-task-app-processdebugresources/124551/3

Go to platforms/android/app/src/main/res/values/strings.xml and add:

<string name="fb_app_id">YOUR_FB_APP_ID</string>
<string name="fb_app_name">YOUR_FB_APP_NAME</string>

Then I had to did cordova clean and ionic cordova build android

How to solve Execution failed for task ':app , How to solve Execution failed for task ':app:processDebugResources' · ionic · ionic-v3 @ionic/cli-utils : 1.19.3 ionic (Ionic CLI) : 3.20.1. Ionic 3 – Resolve “Execution failed for task ‘:app:processDebugResources’.” Last updated on October 28, 2018 Jolly.exe During development Ionic 3 project when I added Ionic Native File Opener plugin I faced the following issue during building android apk


Actually this is a android support problem. so first find out which android support library installed in your android sdk.

in my sdk com.android.support:support-v4:24.1.1+ so i replaced the code in project.properites file

cordova.system.library.1=com.android.support:support-v4:24.1.1+

Ionic 3 – Resolve "Execution failed for task ':app , FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugResources'. > Failed to execute aapt. Execution failed for task ':app:mergeDebugResources'. When i tried running this command a few days ago it made the apk, but now it won't anymore. i didn't change anything either i tried running ionic cordova resources again so that maybe it wouldn't chrash on the image again


in the project folder try:

cordova clean
ionic cordova build <platform_name>

“Ionic 3, Hi guys, I give you several Ionic 3 errors that I found on the web and and I could solve. Execution failed for task  but this only brought me another problem, now What went wrong: the execution failed for the task ': mergeDebugResources'. ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="XXXXXXXX" --variable APP_NAME="XXXXXXXX"


Build Androdi: Execution failed for task ':app , Hi, I have error to build Android. Command: “ionic cordova build android” for Visual Code. What went wrong: Execution failed for task  * What went wrong: Execution failed for task ':app:processDebugResources'. > Failed to execute aapt Expected behavior: No errors and a successful build. Steps to reproduce: Just run ionic cordova run android. Related code: insert short code snippets here Other information: I already remove the platform and added it again.


Henry Vallenilla on Twitter: "Answer: IONIC 3: Execution failed for , Answer: IONIC 3: Execution failed for task ':app:processDebugResources'https://​stackoverflow.com/a/52651278/2721949?stw=2 … 9:55 AM - 6  Thanks for the issue! We use this issue tracker exclusively for bug reports and feature requests for the Ionic CLI. It appears that this issue is associated with Cordova.


Ionic3 Execution failed for task ':app , I'm building an application with Ionic3. Everything worked fine, Untill I install phonegap push plugin. Then I start to get this error Execution failed for task  Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research! But avoid …. Asking for help, clarification, or responding to other answers.