Je travaille sur une application Android et j'ai ajouté le système crashlytics de fire-base, mais sur certains appareils, je rencontre continuellement le problème suivant
Quelqu'un peut-il m'aider à résoudre ce problème ?
gradle :
dependencies {
//noinspection GradleCompatible
implementation 'com.android.support:support-v4:26.1.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.mcxiaoke.volley:library-aar:1.0.0'
implementation 'com.google.code.gson:gson:2.7'
implementation 'de.hdodenhof:circleimageview:2.1.0'
testImplementation 'junit:junit:4.12'
//noinspection GradleCompatible
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation('org.apache.httpcomponents:httpmime:4.3.6') {
exclude module: 'httpclient'
}
implementation 'org.apache.httpcomponents:httpclient-android:4.3.5'
implementation 'com.squareup.picasso:picasso:2.3.2'
implementation 'com.baoyz.pullrefreshlayout:library:1.2.0'
implementation 'com.cocosw:bottomsheet:1.+@aar'
implementation 'com.android.support:multidex:1.0.1'
implementation 'id.zelory:compressor:2.1.0'
//google services
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.firebase:firebase-core:11.4.2'
implementation 'com.google.firebase:firebase-messaging:17.1.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
implementation 'com.google.firebase:firebase-crash:15.0.2'
implementation 'com.google.android.gms:play-services-analytics:15.0.2'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
}
Erreur :
Caused by java.lang.ClassNotFoundException
Didn't find class "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
on path: DexPathList[[zip file "/data/app/com.karvyclick.fos-1/base.apk"],nativeLibraryDirectories=
[/data/app/com.karvyclick.fos-1/lib/arm, /system/lib, /vendor/lib]]