4

I did not find any solution for this issue, actually error is in AndroidManifest.xml

android:appComponentFactory="android.support.v4.app.CoreComponentFactory"

Naveen T P
  • 6,955
  • 2
  • 22
  • 29
  • anyone have the solution for this – tinto mathew Aug 06 '18 at 11:44
  • Possible duplicate of [No resource identifier found for attribute 'appComponentFactory' in package 'android'](https://stackoverflow.com/questions/50266035/no-resource-identifier-found-for-attribute-appcomponentfactory-in-package-and) – sulaiman sudirman Jul 18 '19 at 04:01

2 Answers2

4

Just install this plugin:

cordova plugin add cordova-android-support-gradle-release --variable ANDROID_SUPPORT_VERSION=27.+
Zoe
  • 27,060
  • 21
  • 118
  • 148
dimko1
  • 872
  • 7
  • 15
  • Thanks, this worked but would you mind explaining briefly why or pointing me in the right direction? I seem to be spending far too much of my time chasing issues like this. I'm building an ionic-v3 project and had just done a fresh npm install and removed and recreated my cordova android platform. I set my version to 26.+ based on my setup but not sure whether that was a good idea or not. – Alex Hinton Nov 21 '18 at 20:47
  • well answer you save my day – MurugananthamS Dec 04 '19 at 07:08
  • how can I Install this plugin? – Arash Afsharpour Sep 26 '20 at 14:52
0

you need to use cordova android@8.0.0 Follow these steps.

• Run:

ionic cordova platform rm android

• Run:

ionic cordova platform add android@8.0.0

• Run:

ionic cordova plugin add cordova-plugin-androidx

• Run:

ionic cordova plugin add cordova-plugin-androidx-adapter

with this steps your build will work again

Paulius Nyoumi
  • 191
  • 1
  • 12
  • Probably not a good idea to go for an old version. You will have a hard time if you want to release to play store. – Suraj Rao Oct 30 '21 at 13:07