Я пытаюсь настроить таргетинг на SDK 28, но получаю следующую ошибку
Тип программы уже существует: androidx.versionedparcelable.CustomVersionedParcelable
Я не хочу переходить наandroidx. Я хочу использовать библиотеки поддержки зависимостей. Как заявлено Google, вы не можете использовать поддержку и материальные зависимости вместе. Тем не менее, существуют некоторые сторонние зависимости, которые, как мне кажется, вызывают проблему, являющуюся транзитивной.
Как решить проблему?
Зависимости -
dependencies {
implementation 'com.android.support:support-v4:28.0.0'
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') {
transitive = true;
}
implementation('com.crashlytics.sdk.android:answers:1.3.13@aar') {
transitive = true;
}
implementation 'com.skyfishjy.ripplebackground:library:1.0.1'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.squareup.retrofit2:retrofit:2.0.2'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
implementation 'com.squareup.okhttp3:logging-interceptor:3.0.0'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.android.gms:play-services-analytics:16.0.5'
implementation 'commons-codec:commons-codec:1.10'
implementation 'me.dm7.barcodescanner:zxing:1.9.13'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.caverock:androidsvg:1.3'
implementation 'com.scottyab:rootbeer-lib:0.0.7'
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-invites:16.0.5'
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
implementation 'com.google.firebase:firebase-perf:16.2.5'
implementation 'com.github.scottyab:secure-preferences:v0.1.7'
implementation 'dnsjava:dnsjava:2.1.7'
//For DNS Okhttp
implementation 'com.zplesac:connectionbuddy:2.0.1'
implementation 'com.google.firebase:firebase-core:16.0.5'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.github.freshdesk:freshchat-android:2.6.0'
implementation 'com.google.android.gms:play-services-base:17.1.0'
implementation 'com.google.android.gms:play-services-identity:17.0.0'
implementation 'com.google.android.gms:play-services-auth:17.0.0'
implementation 'com.google.android.gms:play-services-auth-api-phone:17.3.0'
implementation 'com.github.AndreaCioccarelli:CryptoPrefs:1.3.2.5'
implementation 'com.facebook.shimmer:shimmer:0.4.0@aar'
// RazorPay
implementation 'com.razorpay:checkout:1.5.12'
// implementation 'com.github.dimorinny:floating-text-button:0.0.4'
implementation 'com.robertlevonyan.view:CustomFloatingActionButton:2.1.1'
implementation 'com.android.support:customtabs:28.0.0'
// For Target API 28
implementation "commons-logging:commons-logging-api:1.1"
}