Я уже проверил все подобные вопросы, но не смог найти решение.
Произошла проблема после переноса моих библиотек на androidx.
error: duplicate value for resource 'attr/layout_anchorGravity' with config ''.
error: resource previously defined here.
Вот мой Gradlefile:
dependencies {
playerReleaseImplementation fileTree(include: ['*.jar'], dir: 'libs')
playerDebugImplementation fileTree(include: ['*.jar'], dir: 'libsDebug')
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
//Dagger 2 dependencies
kapt 'com.google.dagger:dagger-compiler:2.0.2'
compileOnly 'org.glassfish:javax.annotation:10.0-b28'
implementation('com.github.afollestad.material-dialogs:core:0.8.5.5@aar') {
transitive = true
}
kapt 'com.jakewharton:butterknife:7.0.1'
implementation('com.github.ozodrukh:CircularReveal:1.3.1@aar') {
transitive = true
}
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.percentlayout:percentlayout:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.palette:palette:1.0.0'
implementation 'androidx.mediarouter:mediarouter:1.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.android.gms:play-services-base:16.1.0'
def lifecycle_version = "1.1.1"
// ViewModel and LiveData
implementation "android.arch.lifecycle:extensions:$lifecycle_version"
def room_version = "1.1.1"
implementation "android.arch.persistence.room:runtime:$room_version"
kapt "android.arch.persistence.room:compiler:$room_version"
implementation 'androidx.core:core-ktx:1.0.1'
// Other
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation "io.reactivex.rxjava2:rxjava:2.1.16"
implementation 'com.google.dagger:dagger:2.0.2'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.0.0-RC1'
implementation 'com.squareup.retrofit2:retrofit:2.0.0-beta3'
implementation 'com.squareup.retrofit2:converter-jackson:2.0.0-beta3'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.6'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.8.6'
implementation 'de.greenrobot:eventbus:2.4.0'
implementation 'com.pixplicity.easyprefs:library:1.8.1@aar'
implementation 'uk.co.ribot:easyadapter:1.5.0@aar'
implementation 'com.jakewharton:butterknife:7.0.1'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.intuit.sdp:sdp-android:1.0.2'
implementation 'net.danlew:android.joda:2.9.9.4'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.0.0-RC1'
implementation 'com.yqritc:recyclerview-flexibledivider:1.2.8'
implementation 'com.ogaclejapan.smarttablayout:library:1.6.0@aar'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.karumi:headerrecyclerview:1.1.0'
implementation 'com.github.TouchBoarder:weekdays-buttons-bar:v1.0.2'
implementation 'com.github.deano2390:MaterialShowcaseView:1.2.0'
implementation 'com.jakewharton.timber:timber:4.6.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
implementation 'com.jakewharton:process-phoenix:1.1.1'
debugImplementation 'com.facebook.stetho:stetho:1.4.2'
debugImplementation('com.facebook.stetho:stetho-okhttp3:1.4.2') {
transitive = false;
}
implementation 'de.cketti.mailto:email-intent-builder:1.0.0'
implementation 'com.github.jakob-grabner:Circle-Progress-View:v1.3'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
}
Мой compileSdkVersion и targetSdkVersion равен 28
Я уже:
- проверено, есть ли конфликтующие библиотеки
- очищено - отключить кэш на андроид студии
Я думаю, что нет конфликтующих библиотек.Я уже очистил кеш инвалидов и т.д. на андроид студии.
Заранее спасибо