Не могу использовать рекламу Firebase: нет статического метода zzc (Landroid / os / Bundle; - PullRequest
0 голосов
/ 16 ноября 2018

Я пытаюсь добавить библиотеку объявлений Firebase в свой проект (который уже запущен), сборка работает, но когда я пытаюсь ее запустить, она вылетает с этой ошибкой:

11-16 10: 33: 13.535 540-540 / com.dap E / AndroidRuntime: ИСКЛЮЧИТЕЛЬНОЕ ИСКЛЮЧЕНИЕ: основное Процесс: com.dap, PID: 540 java.lang.NoSuchMethodError: Нет статического метода zzc (Landroid / os / Bundle;) Lcom / google / android / gms / measure / internal / zzak; в классе Lcom / google / android / gms / measure / internal / zzak; или его суперклассы (объявление com.google.android.gms.measurement.internal.zzak 'появляется в /data/app/com.dap-AZ0LDvxgjJKn7K-a-EQ0QQ==/split_lib_dependencies_apk.apk) на com.google.firebase.analytics.connector.AnalyticsConnectorImpl.getInstance (неизвестный источник: 20) на com.google.firebase.analytics.connector.internal.zzb.create (неизвестный источник: 6) на com.google.firebase.components.Lazy.lambda $ new $ 0 (com.google.firebase: firebase-common @@ 16.0.4: 43) на com.google.firebase.components.Lazy $$ Lambda $ 1.get (неизвестный источник: 4) на com.google.firebase.components.Lazy.get (com.google.firebase: firebase-common @@ 16.0.4: 54) на com.google.firebase.components.AbstractComponentContainer.get (com.google.firebase: firebase-common @@ 16.0.4: 26) на com.google.firebase.components.ComponentRuntime.get (com.google.firebase: firebase-common @@ 16.0.4: 34) на com.google.firebase.components.ComponentRuntime.initializeEagerComponents (com.google.firebase: firebase-common @@ 16.0.4: 82) на com.google.firebase.FirebaseApp.initializeAllApis (com.google.firebase: firebase-common @@ 16.0.4: 761) на com.google.firebase.FirebaseApp.initializeApp (com.google.firebase: firebase-common @@ 16.0.4: 359) на com.google.firebase.FirebaseApp.initializeApp (com.google.firebase: firebase-common @@ 16.0.4: 324) на com.google.firebase.FirebaseApp.initializeApp (com.google.firebase: firebase-common @@ 16.0.4: 310) на com.google.firebase.provider.FirebaseInitProvider.onCreate (com.google.firebase: firebase-common @@ 16.0.4: 53) на android.content.ContentProvider.attachInfo (ContentProvider.java:1919) на android.content.ContentProvider.attachInfo (ContentProvider.java:1894) на com.google.firebase.provider.FirebaseInitProvider.attachInfo (com.google.firebase: firebase-common @@ 16.0.4: 47) на android.app.ActivityThread.installProvider (ActivityThread.java:7107) на android.app.ActivityThread.installContentProviders (ActivityThread.java:6594) на android.app.ActivityThread.handleBindApplication (ActivityThread.java:6498) atroid.app.ActivityThread.-wrap2 (неизвестный источник: 0) на android.app.ActivityThread $ H.handleMessage (ActivityThread.java:1963) на android.os.Handler.dispatchMessage (Handler.java:108)на android.os.Looper.loop (Looper.java:166) на android.app.ActivityThread.main (ActivityThread.java:7425) в java.lang.reflect.Method.invoke (родной метод) на com.android.internal.os.Zygote $ MethodAndArgsCaller.run (Zygote.java:245) на com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921)

Все мои библиотеки Firebase / Google обновлены последняя версия 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'

Пока мой 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
}

Я тоже пытался понизить версию некоторых библиотек, таких как post advice. Нет успеха Я пытался понизить рейтинг gms: play-services-location, но безуспешно. Вместо добавления библиотеки объявлений из Firebase я попробовал одну из Google, но я получаю эту ошибку: "Error: Program type already present: com.google.android.gms.internal.measurement.zzdz"

Я также пытался очистить и перестроить проект, удалить приложение на моем телефоне, сделать недействительным кэш и перезапустить. Но я продолжаю получать ту же ошибку.

Я буду копать, но сейчас я не могу найти способ заставить эти библиотеки Firebase работать вместе.

Наконец, если это может кому-нибудь помочь, вот мое приложение gradlew: зависимости:

+--- 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)

Извините за все блоки кодов, но я подумал, что будет легче понять.

Спасибо за ваше время.

Ответы [ 6 ]

0 голосов
/ 12 декабря 2018

Убедитесь, что firebase-core и firebase-ads актуальны , указав последнюю версию.

В то времянаписания моего ответа они:

implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-ads:17.1.2'
0 голосов
/ 23 ноября 2018

Follow this answer Я надеюсь, что это решит вашу проблему, дайте мне знать, если она работает.

0 голосов
/ 21 ноября 2018

ну, я потратил 2 дня на те же самые pbs.Итак, сначала я изменил реализацию 'com.google.firebase: firebase-core: 16.0.4' -> реализация 'com.google.firebase: firebase-core: 16.0.5', но при запуске не смог найтиточная версия 16.0.5.Так что, в конечном итоге, для меня это странная работа - это изменить 'com.google.firebase: firebase-core: 16.0.4' -> внедрение 'com.google.firebase: firebase-core: +'

Здесьэто мои зависимости уровня приложения build.gradle, в случае, если это может быть полезно: зависимости {

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'

}

применить плагин: 'com.google.gms.google-services'

Ниже приведено сообщение об ошибке, я получил то же самое: java.lang.NoSuchMethodError: Нет статического метода zzc (Landroid / os / Bundle;) Lcom / google / android / gms / measure / internal / zzak;в классе Lcom / google / android / gms / measure / internal / zzak;или его суперклассы (объявление com.google.android.gms.measurement.internal.zzak 'отображается в ...) на com.google.firebase.analytics.connector.AnalyticsConnectorImpl.getInstance (неизвестный источник) на com.google..firebase.analytics.connector.internal.zzb.create (неизвестный источник)

0 голосов
/ 19 ноября 2018

пожалуйста, замените com.google.firebase:firebase-ads:17.1.1 на com.google.firebase:firebase-ads:17.1.0

0 голосов
/ 19 ноября 2018

Итак, я нашел решение своей проблемы, но, на мой взгляд, это не самый лучший способ.

Мне пришлось понизить несколько библиотек Firebase, пока они не заработают, как вы можете видеть на моем 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'

Видимо, некоторые библиотеки зависят друг от друга. Пока я не буду обновлять их до последней версии ... Было бы очень признательно, если бы я мог получить больше информации об этом.

0 голосов
/ 17 ноября 2018

Изменить реализацию "com.google.firebase: firebase-core: 16.0.4" на внедрение "com.google.firebase: firebase-core: + '

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...