Android build broken after gradle dependencies update: Execution failed for task ':processDebugResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt


#83

Amigos todo esto se soluciona con la actualización de nodejs 7 que aparecio y la actualizacion de ionic.

Saludos.


#84

you are my hero :joy:


#85

I have installed API 27, repeat the steps

cordova plugin rm cordova-plugin-compat --force
cordova plugin add cordova-plugin-compat@1.2
cordova platform rm android
cordova platform add android@6.3.0

but nothing :frowning:


#86

This is the problem I mentioned, did you checked plugins/android.json and plugins/fetch.json??? Maybe compat stiil in these files. Please check and then try again.


Ionic build error - Error at processDebugResources
#87

Thank you, @leonardoss but:

android.json . In “installed_plugins”, I have deleted the block:

 {
    "cordova-plugin-compat": {
      "PACKAGE_NAME": "ro.tsd.tsd2020"
    },

and fetch.json

  "cordova-plugin-compat": {
    "source": {
      "type": "registry",
      "id": "cordova-plugin-compat@1.2"
    },
    "is_top_level": true,
    "variables": {}
  },

Did the steps:

cordova plugin rm cordova-plugin-compat --force
cordova platform rm android
cordova platform add android@6.3.0

At the end of the android.json appears the block:

"dependent_plugins": {
    "cordova-plugin-compat": {
      "PACKAGE_NAME": "com.appname.bla"
    }
  }

Deleted

 "cordova-plugin-compat": {
      "PACKAGE_NAME": "ro.tsd.tsd2020"
    }

And same error…


#88

Check android.json inside platforms/android I found a mention to compat here too


#89

I solved this issue by updating cordova and ionic to their @latest versions:

sudo npm install ionic@latest -g
sudo npm install cordova@latest -g

I started with a clean project (with no plugins/ folder in it) and it worked.


#90

a fresh new installation app always worked, this issue is only for old created apps.


#91

Nothing… :frowning:

BUT

FINALLY I found the issue:
The plugin cordova-plugin-compat weren’t removed or updated on version 1.2 and after I found that is the old version in the release notes, I did a hard delete:
rm -rf plugins/cordova-plugin-compat
and installed the 1.2 version which works:
cordova plugin add cordova-plugin-compat@1.2

Thank you all for your support! Glad to be a member of this community :slight_smile:


#92

I still don’t really understand what the issue is or where it comes from.

It has to do with the support library 27 being loaded.
It has to do with the compat plugin being installed/outdated.

What is loading the wrong support library?
How is the compat plugin connected to that?


#93

I think it was from the compat plugin. I will try tomorrow to make some tests (uninstall API 27) and get the answer. I think. Haha.

LE: Uploaded the app to play and target SDK seems to be 26.


#94

hello … look at me or I have the library 27 and I have that problem and so far I have not been able to solve it. what I have is the plugin compat


#95

Can someone of you upload their project to Github so someone else can download it and see it also is broken on other systems? You can of course remove all of the Ionic app if necessary (ionic start blank, copy src over to the project folder).


#96

This works for me. But when the app run in emulator, he stay stucked in Splashscreen.


#97

Me too

ERROR: In FontFamilyFont, unable to find attribute android:font
ERROR: In FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In FontFamilyFont, unable to find attribute android:fontWeight


#98

Please read previous comments, the solution is in this comment: Android build broken after gradle dependencies update: Execution failed for task ':processDebugResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt


#99

Try to uninstall previous version on emulator if exists.
Check the console log, in chrome: chrome://inspect/#devices and open Android Monitor to see what is happening.


#100

PS: I think this is not related to this issue, if you can build your app and run into device, this is not the right place to ask about blank splashscreen.


#101

Nice!
Thank you so much


#102

The splashscreen problem was in “cordova-plugin-console”. I removed the plugin, now app runs normally.