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
Visit project.properties in your Ionic project...that is platform/android/project.properties
and replace like below
target=android-26
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=com.android.support:support-v4:24.1.1+
cordova.system.library.2=com.android.support:appcompat-v7:23+
cordova.gradle.include.1=cordova-plugin-telerik-imagepicker/multipurposetheme-
ignorelinterrors.gradle
cordova.gradle.include.2=cordova-plugin-telerik-imagepicker/multipurposetheme-
androidtarget.gradle
cordova.system.library.3=com.android.support:support-v4:27.1.0
I just solve this issue by removing this line of code cordova.system.library.15=com.android.support:support-v4:+
, and the path to the file is platforms/android/project.properties
Solution link
This is due to compat plugin. Remove that plugin if you have older version (less than 1.2.0) and set cordova-android@6.3.0
cordova plugin rm cordova-plugin-compat --force
cordova plugin add cordova-plugin-compat@1.2.0
cordova platform rm android
ionic cordova platform add android@6.3.0
Working at my case. Thanks :)
This problem occurred after i uninstall the Firebase plugin.
I tried alot of things but the simplest solution that i found was start a new project and replace the src folder with the new contents.
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
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