J'essaie d'ajouter la bibliothèque d'annonces Firebase à mon projet (qui est déjà en ligne). La construction fonctionne, mais lorsque j'essaie de l'exécuter, elle se bloque avec cette erreur:
11-16 10: 33: 13.535 540-540/com.dap E/AndroidRuntime: EXCEPTION FATALE: processus principal: com.dap, PID: 540 Java.lang.NoSuchMethodError: Aucune méthode statique zzc (Landroid/os/Bundle;) Lcom/Google/Android/gms/mesure/internal/zzak; en classe Lcom/google/Android/gms/mesure/interne/zzak; ou ses super-classes (la déclaration 'com.google.Android.gms.measurement.internal.zzak' apparaît dans /data/app/com.dap-AZ0LDvxgjJKn7K-a-EQ0QQ==/split_lib_dependencies_apk.apk) at com .google.firebase.analytics.connector.AnalyticsConnectorImpl.getInstance (Source inconnue: 20) à l'adresse com.google.firebase.analytics.connector.internal.zzb.create (Source inconnue: 6) à l'adresse com.google.firebase.components.Lazy .lambda $ new $ 0 (com.google.firebase: firebase-common @@ 16.0.4: 43) à l'adresse com.google.firebase.components.Lazy $$ Lambda $ 1.get (Source inconnue: 4) sur com.google. firebase.components.Lazy.get (com.google.firebase: firebase-common @@ 16.0.4: 54) à l'adresse com.google.firebase.components.AbstractComponentContainer.get (com.google.firebase: firebase-common @@ 16.0 .4: 26) sur com.google.firebase.components.ComponentRuntime.get (com.google.firebase: firebase-common @@ 16.0.4: 34) sur com.google.firebase.components.ComponentRuntime.initializeEEcomponents (com. 4). google.firebase: firebase-common @@ 16.0.4: 82) à l'adresse com.google.firebase.FirebaseApp.initia lizeAllApis (com.google.firebase: firebase-common @@ 16.0.4: 761) sur com.google.firebase.FirebaseApp.initializeApp (com.google.firebase: firebase-common @@ 16.0.4: 359) sur com. google.firebase.FirebaseApp.initializeApp (com.google.firebase: firebase-common @@ 16.0.4: 324) à l'adresse com.google.firebase.FirebaseApp.initializeApp (com.google.firebase: firebase-common @@ 16.0.4). : 310) sur com.google.firebase.provider.FirebaseInitProvider.onCreate (com.google.firebase: firebase-common @@ 16.0.4: 53) sur Android.content.ContentProvider.attachInfo (ContentProvider.Java:1919) sur Android .content.ContentProvider.attachInfo (ContentProvider.Java:1894) à l'adresse com.google.firebase.provider.FirebaseInitProvider.attachInfo (com.google.firebase: firebase-common @@ 16.0.4: 47) sur Android.app.ActivityThread. installProvider (ActivityThread.Java:7107) sur Android.app.ActivityThread.installContentProviders (ActivityThread.Java:6594) sur Android.app.ActivityThread.handleBindApplication (ActivityThread.Java:6498) sur Android.app.ActivityThread.-wrap2 (Unknown So urce: 0) sur Android.app.ActivityThread $ H.handleMessage (ActivityThread.Java:1963) sur Android.os.Handler.dispatchMessage (Handler.Java:108) sur Android.os.Looper.loop (Looper.Java:166 ) sur Android.app.ActivityThread.main (ActivityThread.Java:7425) sur Java.lang.reflect.Method.invoke (Méthode native) sur com.Android.internal.os.Zygote $ MethodAndArgsCaller.run (Zygote.Java:245 ) sur com.Android.internal.os.ZygoteInit.main (ZygoteInit.Java:921)
Toutes mes bibliothèques Firebase/Google sont à jour dernière version de firebase :
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
// Facebook libraries
implementation 'com.facebook.Android:facebook-Android-sdk:4.32.0'
// Firebase/Google libraries
implementation('com.crashlytics.sdk.Android:crashlytics:2.9.6@aar') {
transitive = true;
}
implementation 'com.firebase:geofire-Android:2.1.0'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-storage:16.0.4'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.4'
implementation 'com.firebaseui:firebase-ui-storage:2.0.1'
implementation 'com.google.firebase:firebase-dynamic-links:16.1.3'
implementation 'com.google.firebase:firebase-analytics:16.0.5'
implementation 'com.google.firebase:firebase-config:16.1.0'
implementation 'com.google.firebase:firebase-invites:16.0.5'
implementation 'com.google.firebase:firebase-functions:16.1.2'
implementation 'com.google.firebase:firebase-ads:17.1.1'
implementation 'com.google.Android.gms:play-services-location:16.0.0'
implementation 'com.Android.billingclient:billing:1.1'
// Support libraries (don't use the global support library)
implementation 'com.Android.support.constraint:constraint-layout:2.0.0-alpha2'
implementation 'com.Android.support:multidex:1.0.3'
implementation 'com.Android.support:percent:27.1.1'
implementation 'com.Android.support:recyclerview-v7:27.1.1'
implementation 'com.Android.support:support-fragment:27.1.1'
implementation 'com.Android.support:support-vector-drawable:27.1.1'
implementation 'com.Android.support:appcompat-v7:27.1.1'
implementation 'com.Android.support:design:27.1.1'
implementation 'com.Android.support:animated-vector-drawable:27.1.1'
// Other libraries
implementation 'com.baoyz.swipemenulistview:library:1.3.0'
implementation 'me.himanshusoni.chatmessageview:chat-message-view:1.0.3'
implementation 'com.github.bumptech.glide:glide:3.8.0'
implementation 'com.github.warkiz.widget:indicatorseekbar:1.1.2'
implementation 'com.github.guilhe:seekbar-ranged-view:1.0.1'
implementation 'com.crystal:crystalrangeseekbar:1.1.3'
testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
Tant que mon build.gradle:
dependencies {
classpath 'com.Android.tools.build:gradle:3.1.4'
classpath 'com.google.gms:google-services:4.2.0'
dependencies {
//classpath 'io.fabric.tools:gradle:1.25.0'
classpath 'io.fabric.tools:gradle:1.25.1'
}
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
J'ai essayé de déclasser certaines bibliothèques comme ceci post aussi. Sans succès. J'ai essayé de déclasser gms: play-services-location, mais sans succès. Au lieu d’ajouter la bibliothèque d’annonces de Firebase, j’ai essayé celle de Google, mais j’obtiens cette erreur: "Error: Program type already present: com.google.Android.gms.internal.measurement.zzdz"
J'ai également essayé de nettoyer et de reconstruire le projet, de désinstaller l'application sur mon téléphone, d'invalider le cache et de redémarrer. Mais je continue à avoir la même erreur.
Je vais continuer à creuser, mais pour l'instant, je ne trouve pas le moyen de faire fonctionner ces librairies Firebase.
Enfin, si cela peut aider n’importe qui, voici mon application gradlew: dépendances:
+--- com.facebook.Android:facebook-Android-sdk:4.32.0
| +--- com.facebook.Android:facebook-core:4.32.0
| | +--- com.parse.bolts:bolts-Android:1.4.0
| | | +--- com.parse.bolts:bolts-tasks:1.4.0
| | | \--- com.parse.bolts:bolts-applinks:1.4.0
| | | \--- com.parse.bolts:bolts-tasks:1.4.0
| | +--- com.Android.support:support-annotations:27.0.2 -> 27.1.1
| | \--- com.Android.support:support-core-utils:27.0.2 -> 27.1.1
| | +--- com.Android.support:support-annotations:27.1.1
| | \--- com.Android.support:support-compat:27.1.1
| | +--- com.Android.support:support-annotations:27.1.1
| | \--- Android.Arch.lifecycle:runtime:1.1.0
| | +--- Android.Arch.lifecycle:common:1.1.0
| | \--- Android.Arch.core:common:1.1.0
| +--- com.facebook.Android:facebook-common:4.32.0
| | +--- com.facebook.Android:facebook-core:4.32.0 (*)
| | +--- com.Android.support:support-v4:27.0.2 -> 27.1.1
| | | +--- com.Android.support:support-compat:27.1.1 (*)
| | | +--- com.Android.support:support-media-compat:27.1.1
| | | | +--- com.Android.support:support-annotations:27.1.1
| | | | \--- com.Android.support:support-compat:27.1.1 (*)
| | | +--- com.Android.support:support-core-utils:27.1.1 (*)
| | | +--- com.Android.support:support-core-ui:27.1.1
| | | | +--- com.Android.support:support-annotations:27.1.1
| | | | +--- com.Android.support:support-compat:27.1.1 (*)
| | | | \--- com.Android.support:support-core-utils:27.1.1 (*)
| | | \--- com.Android.support:support-fragment:27.1.1
| | | +--- com.Android.support:support-compat:27.1.1 (*)
| | | +--- com.Android.support:support-core-ui:27.1.1 (*)
| | | +--- com.Android.support:support-core-utils:27.1.1 (*)
| | | +--- com.Android.support:support-annotations:27.1.1
| | | +--- Android.Arch.lifecycle:livedata-core:1.1.0
| | | | +--- Android.Arch.lifecycle:common:1.1.0
| | | | +--- Android.Arch.core:common:1.1.0
| | | | \--- Android.Arch.core:runtime:1.1.0
| | | | \--- Android.Arch.core:common:1.1.0
| | | \--- Android.Arch.lifecycle:viewmodel:1.1.0
| | +--- com.Android.support:appcompat-v7:27.0.2 -> 27.1.1
| | | +--- com.Android.support:support-annotations:27.1.1
| | | +--- com.Android.support:support-core-utils:27.1.1 (*)
| | | +--- com.Android.support:support-fragment:27.1.1 (*)
| | | +--- com.Android.support:support-vector-drawable:27.1.1
| | | | +--- com.Android.support:support-annotations:27.1.1
| | | | \--- com.Android.support:support-compat:27.1.1 (*)
| | | \--- com.Android.support:animated-vector-drawable:27.1.1
| | | +--- com.Android.support:support-vector-drawable:27.1.1 (*)
| | | \--- com.Android.support:support-core-ui:27.1.1 (*)
| | +--- com.Android.support:cardview-v7:27.0.2
| | | \--- com.Android.support:support-annotations:27.0.2 -> 27.1.1
| | +--- com.Android.support:customtabs:27.0.2
| | | +--- com.Android.support:support-compat:27.0.2 -> 27.1.1 (*)
| | | \--- com.Android.support:support-annotations:27.0.2 -> 27.1.1
| | \--- com.google.zxing:core:3.3.0
| +--- com.facebook.Android:facebook-login:4.32.0
| | +--- com.facebook.Android:facebook-core:4.32.0 (*)
| | +--- com.facebook.Android:facebook-common:4.32.0 (*)
| | \--- com.Android.support:appcompat-v7:27.0.2 -> 27.1.1 (*)
| +--- com.facebook.Android:facebook-share:4.32.0
| | +--- com.facebook.Android:facebook-core:4.32.0 (*)
| | \--- com.facebook.Android:facebook-common:4.32.0 (*)
| +--- com.facebook.Android:facebook-places:4.32.0
| | \--- com.facebook.Android:facebook-core:4.32.0 (*)
| +--- com.facebook.Android:facebook-applinks:4.32.0
| | +--- com.facebook.Android:facebook-core:4.32.0 (*)
| | \--- com.parse.bolts:bolts-Android:1.4.0 (*)
| \--- com.facebook.Android:facebook-messenger:4.32.0
| +--- com.facebook.Android:facebook-core:4.32.0 (*)
| \--- com.parse.bolts:bolts-Android:1.4.0 (*)
+--- com.crashlytics.sdk.Android:crashlytics:2.9.6
| +--- com.crashlytics.sdk.Android:answers:1.4.4
| | \--- io.fabric.sdk.Android:fabric:1.4.5
| +--- com.crashlytics.sdk.Android:beta:1.2.10
| +--- io.fabric.sdk.Android:fabric:1.4.5
| \--- com.crashlytics.sdk.Android:crashlytics-core:2.6.5
| +--- com.crashlytics.sdk.Android:answers:1.4.4 (*)
| \--- io.fabric.sdk.Android:fabric:1.4.5
+--- com.firebase:geofire-Android:2.1.0
+--- com.google.firebase:firebase-core:16.0.4
| +--- com.google.firebase:firebase-analytics:16.0.4 -> 16.0.5
| | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0
| | | \--- com.Android.support:support-v4:26.1.0 -> 27.1.1 (*)
| | +--- com.google.Android.gms:play-services-measurement-api:[16.0.3] -> 16.0.3
| | | +--- com.google.Android.gms:play-services-ads-identifier:16.0.0
| | | | \--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | +--- com.google.Android.gms:play-services-measurement-base:[16.0.4] -> 16.0.4
| | | | \--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | +--- com.google.Android.gms:play-services-stats:16.0.1
| | | | \--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | +--- com.google.Android.gms:play-services-tasks:16.0.1
| | | | \--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | +--- com.google.firebase:firebase-analytics-impl:[16.2.3] -> 16.2.3
| | | | +--- com.google.Android.gms:play-services-ads-identifier:16.0.0 (*)
| | | | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | | +--- com.google.Android.gms:play-services-measurement-base:[16.0.4] -> 16.0.4 (*)
| | | | +--- com.google.Android.gms:play-services-stats:16.0.1 (*)
| | | | +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| | | | +--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4
| | | | | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | | | \--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| | | | \--- com.google.firebase:firebase-iid:17.0.3 -> 17.0.4
| | | | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | | +--- com.google.Android.gms:play-services-stats:16.0.1 (*)
| | | | +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| | | | +--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
| | | | \--- com.google.firebase:firebase-iid-interop:16.0.1
| | | | +--- com.google.Android.gms:play-services-base:16.0.1
| | | | | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | | | \--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| | | | \--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | +--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
| | | \--- com.google.firebase:firebase-iid:17.0.3 -> 17.0.4 (*)
| | +--- com.google.Android.gms:play-services-measurement-base:[16.0.4] -> 16.0.4 (*)
| | +--- com.google.Android.gms:play-services-stats:16.0.1 (*)
| | +--- com.google.firebase:firebase-analytics-impl:[16.2.3] -> 16.2.3 (*)
| | \--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
| \--- com.google.firebase:firebase-measurement-connector-impl:17.0.2
| +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| +--- com.google.Android.gms:play-services-measurement-api:16.0.2 -> 16.0.3 (*)
| +--- com.google.Android.gms:play-services-measurement-base:16.0.3 -> 16.0.4 (*)
| +--- com.google.firebase:firebase-analytics:16.0.4 -> 16.0.5 (*)
| +--- com.google.firebase:firebase-analytics-impl:16.2.2 -> 16.2.3 (*)
| +--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
| \--- com.google.firebase:firebase-measurement-connector:17.0.1
| \--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
+--- com.google.firebase:firebase-messaging:17.3.4
| +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| +--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
| +--- com.google.firebase:firebase-iid:[17.0.4] -> 17.0.4 (*)
| \--- com.google.firebase:firebase-measurement-connector:17.0.1 (*)
+--- com.google.firebase:firebase-storage:16.0.4
| +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| \--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
+--- com.google.firebase:firebase-auth:16.0.5
| +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| +--- com.google.Android.gms:play-services-basement:16.1.0 (*)
| +--- com.google.Android.gms:play-services-flags:16.0.1
| | +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| | \--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| +--- com.google.firebase:firebase-auth-interop:16.0.1
| | +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| | \--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
| \--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
+--- com.google.firebase:firebase-database:16.0.4
| +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| +--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
| \--- com.google.firebase:firebase-database-collection:16.0.0
| \--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
+--- com.firebaseui:firebase-ui-storage:2.0.1
| +--- com.Android.support:appcompat-v7:25.3.1 -> 27.1.1 (*)
| +--- com.Android.support:palette-v7:25.3.1
| | +--- com.Android.support:support-compat:25.3.1 -> 27.1.1 (*)
| | \--- com.Android.support:support-core-utils:25.3.1 -> 27.1.1 (*)
| +--- com.github.bumptech.glide:glide:3.7.0 -> 3.8.0
| \--- com.google.firebase:firebase-storage:11.0.1 -> 16.0.4 (*)
+--- com.google.firebase:firebase-dynamic-links:16.1.3
| +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| +--- com.google.Android.gms:play-services-measurement-base:[16.0.4] -> 16.0.4 (*)
| +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| +--- com.google.firebase:firebase-analytics-impl:[16.2.3] -> 16.2.3 (*)
| \--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
+--- com.google.firebase:firebase-analytics:16.0.5 (*)
+--- com.google.firebase:firebase-config:16.1.0
| +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| +--- com.google.Android.gms:play-services-phenotype:16.0.0
| | +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | \--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| +--- com.google.firebase:firebase-abt:16.0.1
| | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | +--- com.google.firebase:firebase-analytics-impl:16.2.2 -> 16.2.3 (*)
| | \--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
| +--- com.google.firebase:firebase-analytics:16.0.4 -> 16.0.5 (*)
| +--- com.google.firebase:firebase-analytics-impl:16.2.2 -> 16.2.3 (*)
| +--- com.google.firebase:firebase-common:16.0.3 -> 16.0.4 (*)
| \--- com.google.firebase:firebase-iid:17.0.3 -> 17.0.4 (*)
+--- com.google.firebase:firebase-invites:16.0.5
| +--- com.google.Android.gms:play-services-appinvite:16.0.5
| | +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | +--- com.google.Android.gms:play-services-measurement-base:[16.0.4] -> 16.0.4 (*)
| | +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| | \--- com.google.firebase:firebase-dynamic-links:[16.1.3] -> 16.1.3 (*)
| \--- com.google.firebase:firebase-analytics:16.0.5 (*)
+--- com.google.firebase:firebase-functions:16.1.2
| +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| +--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
| +--- com.google.firebase:firebase-auth-interop:16.0.1 (*)
| +--- com.google.firebase:firebase-common:16.0.4 (*)
| +--- com.google.firebase:firebase-iid:17.0.3 -> 17.0.4 (*)
| +--- com.google.firebase:firebase-iid-interop:16.0.1 (*)
| \--- com.squareup.okhttp:okhttp:2.7.2
| \--- com.squareup.okio:okio:1.6.0
+--- com.google.firebase:firebase-ads:17.1.1
| +--- com.google.Android.gms:play-services-ads:17.1.1
| | +--- com.Android.support:customtabs:26.1.0 -> 27.0.2 (*)
| | +--- com.google.Android.gms:play-services-ads-base:[17.1.1] -> 17.1.1
| | +--- com.google.Android.gms:play-services-ads-identifier:16.0.0 (*)
| | +--- com.google.Android.gms:play-services-ads-lite:[17.1.1] -> 17.1.1
| | | +--- com.google.Android.gms:play-services-ads-base:[17.1.1] -> 17.1.1
| | | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | \--- com.google.Android.gms:play-services-measurement-sdk-api:16.0.3
| | | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | | \--- com.google.Android.gms:play-services-measurement-base:[16.0.4] -> 16.0.4 (*)
| | +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| | \--- com.google.Android.gms:play-services-gass:[17.1.1] -> 17.1.1
| | +--- com.google.Android.gms:play-services-ads-base:[17.1.1] -> 17.1.1
| | \--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| \--- com.google.firebase:firebase-analytics:16.0.5 (*)
+--- com.google.Android.gms:play-services-location:16.0.0
| +--- com.google.Android.gms:play-services-base:16.0.1 (*)
| +--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| +--- com.google.Android.gms:play-services-places-placereport:16.0.0
| | \--- com.google.Android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
| \--- com.google.Android.gms:play-services-tasks:16.0.1 (*)
+--- com.Android.billingclient:billing:1.1
| \--- com.Android.support:support-annotations:25.0.0 -> 27.1.1
+--- com.Android.support.constraint:constraint-layout:2.0.0-alpha2
| +--- com.Android.support:appcompat-v7:27.1.1 (*)
| +--- com.Android.support:recyclerview-v7:27.1.1
| | +--- com.Android.support:support-annotations:27.1.1
| | +--- com.Android.support:support-compat:27.1.1 (*)
| | \--- com.Android.support:support-core-ui:27.1.1 (*)
| \--- com.Android.support.constraint:constraint-layout-solver:2.0.0-alpha2
+--- com.Android.support:multidex:1.0.3
+--- com.Android.support:percent:27.1.1
| \--- com.Android.support:support-compat:27.1.1 (*)
+--- com.Android.support:recyclerview-v7:27.1.1 (*)
+--- com.Android.support:support-fragment:27.1.1 (*)
+--- com.Android.support:support-vector-drawable:27.1.1 (*)
+--- com.Android.support:appcompat-v7:27.1.1 (*)
+--- com.Android.support:design:27.1.1
| +--- com.Android.support:support-v4:27.1.1 (*)
| +--- com.Android.support:appcompat-v7:27.1.1 (*)
| +--- com.Android.support:recyclerview-v7:27.1.1 (*)
| \--- com.Android.support:transition:27.1.1
| +--- com.Android.support:support-annotations:27.1.1
| \--- com.Android.support:support-compat:27.1.1 (*)
+--- com.Android.support:animated-vector-drawable:27.1.1 (*)
+--- com.baoyz.swipemenulistview:library:1.3.0
| \--- com.Android.support:support-v4:22.1.1 -> 27.1.1 (*)
+--- me.himanshusoni.chatmessageview:chat-message-view:1.0.3
+--- com.github.bumptech.glide:glide:3.8.0
+--- com.github.warkiz.widget:indicatorseekbar:1.1.2
+--- com.github.guilhe:seekbar-ranged-view:1.0.1
| \--- com.Android.support:appcompat-v7:26.0.1 -> 27.1.1 (*)
+--- com.crystal:crystalrangeseekbar:1.1.3
| \--- com.Android.support:appcompat-v7:23.4.0 -> 27.1.1 (*)
\--- com.Android.support:multidex:1.0.2 -> 1.0.3
(*) - dependencies omitted (listed previously)
(n) - Not resolved (configuration is not meant to be resolved)
Désolé pour tous les blocs de codes, mais je pensais que ce serait plus facile à comprendre.
Merci pour votre temps.
J'ai donc trouvé une solution à mon problème, mais ce n'est pas vraiment la meilleure solution à mon avis.
J'ai dû déclasser plusieurs lib Firebase jusqu'à ce que cela fonctionne comme vous pouvez le voir sur mon graddle.
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-messaging:17.3.2'
implementation 'com.google.firebase:firebase-storage:16.0.2'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.google.firebase:firebase-database:16.0.2'
implementation 'com.firebaseui:firebase-ui-storage:2.0.1'
implementation 'com.google.firebase:firebase-dynamic-links:16.1.1'
implementation 'com.google.firebase:firebase-analytics:16.0.3'
implementation 'com.google.firebase:firebase-config:16.0.0'
implementation 'com.google.firebase:firebase-invites:16.0.3'
implementation 'com.google.firebase:firebase-functions:16.1.0'
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'com.google.Android.gms:play-services-location:15.0.1'
implementation 'com.Android.billingclient:billing:1.1'
Apparemment, certaines bibliothèques dépendent les unes des autres. Pour le moment, je ne les mettrai pas à jour avec leur dernière version .... Il serait très utile que je puisse avoir plus d'informations à ce sujet.
veuillez remplacer com.google.firebase:firebase-ads:17.1.1
par com.google.firebase:firebase-ads:17.1.0
Assurez-vous que firebase-core et firebase-ads sont à jour en spécifiant la dernière version.
Au moment de la rédaction de ma réponse, ils sont:
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-ads:17.1.2'
Modifier implémentation 'com.google.firebase: firebase-core: 16.0.4' en implémentation 'com.google.firebase: firebase-core: +'
eh bien, j'ai passé 2 jours sur les mêmes pbs. Donc, d’abord, j’ai changé La mise en oeuvre 'com.google.firebase: firebase-core: 16.0.4' -> la mise en oeuvre 'com.google.firebase: firebase-core: 16.0.5' mais elle pourrait pas trouver la version exacte 16.0.5. Donc, ce qui finit par fonctionner étrangement pour moi, c'est de changer 'Com.google.firebase: firebase-core: 16.0.4' -> implémentation 'com.google.firebase: firebase-core: +'
Voici mes dépendances build.gradle au niveau de l'application, au cas où cela pourrait être utile: Dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
configurations.androidTestImplementation.dependencies.each { androidTestImplementationDependency ->
androidTestImplementationDependency.exclude group: 'com.Android.support'
}
implementation ("com.Android.support:support-v4:28.0.0") {
force = true //<-- force dependency resolution to 28.0.0 in my case
}
implementation project(':slyce-messaging')
implementation 'com.Android.support:multidex:1.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.Android.support:support-media-compat:28.0.0'
implementation 'com.Android.support:customtabs:28.0.0'
implementation 'com.Android.support:support-core-utils:28.0.0'
implementation 'com.Android.support:design:28.0.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.Android.support:appcompat-v7:28.0.0'
implementation 'com.google.Android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-core:+'
implementation 'com.crashlytics.sdk.Android:crashlytics:2.9.6'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-crash:16.2.1'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-config:16.1.0'
implementation 'com.google.firebase:firebase-invites:16.0.4'
implementation 'com.firebaseui:firebase-ui:2.0.1'
implementation 'com.google.Android.gms:play-services-appinvite:16.0.5'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.Android.support:recyclerview-v7:28.0.0'
implementation 'com.Android.support:cardview-v7:28.0.0'
implementation 'com.firebase:firebase-jobdispatcher:0.5.2'
implementation 'net.rimoto:intlphoneinput:1.0.1'
implementation 'com.github.marlonlom:timeago:3.0.1'
implementation 'com.Android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'junit:junit:4.12'
androidTestImplementation 'com.Android.support.test.espresso:espresso-core:3.0.2'
androidTestImplementation 'com.Android.support.test:runner:1.0.2'
androidTestImplementation 'com.Android.support:support-annotations:28.0.0'
implementation 'com.google.firebase:firebase-ads:17.1.1'
}
appliquer le plugin: 'com.google.gms.google-services'
Ci-dessous le message d'erreur, j'ai la même chose: Java.lang.NoSuchMethodError: Pas de méthode statique zzc (Landroid/os/Bundle;) Lcom/google/Android/gms/mesure/internal/zzak; en classe Lcom/google/Android/gms/mesure/interne/zzak; ou ses super-classes (la déclaration "com.google.Android.gms.measurement.internal.zzak" apparaît dans ...) sur com.google.firebase.analytics.connector.AnalyticsConnectorImpl.getInstance (source inconnue) sur com.google.firebase.analytics.connector.internal.zzb.create (Source inconnue)
Suivez ceci répondez J'espère que cela résoudra votre problème, laissez-moi savoir si cela fonctionne.