I am getting a problem when I try to add a dependency in Android Studio. I want to add com.android.support:design:28.0.0 to dependencies, but I am getting an error like this:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
}
ERROR: Manifest merger failed with multiple errors, see logs
You are using both androidx and android support library. Replace android support library with the existing androidx library.
You can find their androidx version here