Manifest Merger Failed With Multiple Errors After Adding Material Design Support
Solution 1:
it says your support dependency has conflict with androidx.core dependency
the android studio cannot use android x dependencies with previous support dependencies at the same time. you should just use one of them.
use these dependencies
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'use this link to refactor your dependencies https://developer.android.com/topic/libraries/support-library/refactor
Solution 2:
My error is solved and my assumption is that in order to use material design, we need to update the android studio to 3.2 because before I was using 3.1 and migrated my project to androidx. And add these two lines
android.useAndroidX=trueandroid.enableJetifier=truein the gradle.properties file of the project or else you will get the error mentioned in my question.
I tried without it and found that it was because of it that I was getting the error. To upgrade the dependencies to androidx visit this site - https://developer.android.com/topic/libraries/support-library/refactor or you can do it automatically from the refractor tab of the studio.
Post a Comment for "Manifest Merger Failed With Multiple Errors After Adding Material Design Support"