Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86
is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to
and my build.gradle:(android studio 3.1.2)
implementation "com.mikepenz:materialdrawer:6.1.1"
//required support lib modules
implementation "androidx.appcompat:appcompat:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.0.0"
implementation "androidx.annotation:annotation:1.0.0"
implementation "com.google.android.material:material:1.0.0"
implementation "androidx.constraintlayout:constraintlayout:1.1.3"
something in your project still uses non androidX it seems.
if you want to use androidX you need to use it for everything. Read the androidX migration notes for more infos.
Otherwise if you can't use androidX use the appcompat version (it won't have the material 2 design though)
I don't want to use androidX,just use materialdrawer,and how do I write this build.gradle
This is the last version using the appcompat libraries:
https://github.com/mikepenz/MaterialDrawer/tree/v6.0.9
there won't be any more updates to it. moving forward only the android x version will get updates.
the tag of v6.0.9 shows the deps used for that version. and it's sample app at this version shows how the code looked like
I had add 6.0.9 in my build.gradle:
implementation("com.mikepenz:materialdrawer:6.0.9@aar") {
transitive = true
}
but still build faile:
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.mikepenz:materialdrawer:6.0.9.
Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.mikepenz:materialdrawer:6.0.9.
You have jcenter in your repositories?
jcenter is a default repo if you start a new project btw.
Why not use the appcompat libraries? Sorry, newbie here.
because the appcompat libraries are deprecated, and will be replaced with androidX now :)