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

Ansib Raza picture Ansib Raza · Feb 10, 2018 · Viewed 25.3k times · Source

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.`

Answer

mike picture mike · May 2, 2019

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