Working on a React Native project but out of sudden it stopped working & started giving an error:
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add ‘tools:replace=“android:appComponentFactory”’ to <application> element at AndroidManifest.xml:7:5-117 to override.
I know Google has done with Support Library class after 28 and I know How to migrate whole project from Support Library class to AndroidX class.
My question is:
Is there any possible way to keep using Support Library class rather than shifting to AndroidX class?
How to fix this issue?