I am getting an warning in android studio when I run my app. the warning is-
Your project has set android.useAndroidX=true
, but configuration debugRuntimeClasspath
still contains legacy support libraries, which may cause runtime issues.
And a error-
Manifest merger failed with multiple errors, see logs
I checked my manifest file and there is no error in my manifest file. I tried debugging the app but it still doesn't fix. I am getting this after updating android studio from android studio arctic fox to android studio bumble bee which is recently released. I updated the gradle version tried cleaning project, invalidating caches but nothing worked. I increased the memory heap size and enabled multidex but still it is not fixed. Please help me out.
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
android.enableJetifier=true
android.useAndroidX=true
Add these in gradle.properties:
android.enableJetifier=true
android.useAndroidX=true
Sync your gradle
and Run the app. It worked fine for me and I didn't have to do the changes in setting.gradle
and build.gradle
(Project level) or any other files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With