Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.`
like image 936
Ansib Raza Avatar asked Feb 10 '18 21:02

Ansib Raza


2 Answers

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 
like image 76
mike Avatar answered Sep 19 '22 19:09

mike


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

like image 45
kaspaddy Avatar answered Sep 20 '22 19:09

kaspaddy