我没有任何firebase依赖项。但应用程序崩溃与firebase错误

时间:2017-07-05 19:14:49

标签: android google-play-services

我的项目中没有任何firebase依赖项。但是app在控制台中崩溃并出现以下错误。

java.lang.NoSuchMethodError: No static method zza(Landroid/app/Application;)V in class Lcom/google/android/gms/internal/zzbav; or its super classes (declaration of 'com.google.android.gms.internal.zzbav' appears in /data/app/com.justhive-1/base.apk)
     at com.google.firebase.FirebaseApp.initializeApp(Unknown Source)
     at com.google.firebase.FirebaseApp.initializeApp(Unknown Source)
     at com.google.firebase.FirebaseApp.initializeApp(Unknown Source)
     at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source)
     at android.content.ContentProvider.attachInfo(ContentProvider.java:1751)
     at android.content.ContentProvider.attachInfo(ContentProvider.java:1726)
     at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)
     at android.app.ActivityThread.installProvider(ActivityThread.java:5853)
     at android.app.ActivityThread.installContentProviders(ActivityThread.java:5445)
     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5384)
     at android.app.ActivityThread.-wrap2(ActivityThread.java)
     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545)
     at android.os.Handler.dispatchMessage(Handler.java:102)
     at android.os.Looper.loop(Looper.java:154)
     at android.app.ActivityThread.main(ActivityThread.java:6119)
     at java.lang.reflect.Method.invoke(Native Method)
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

这是我的app.gradle。

dependencies {
    compile 'com.google.android.gms:play-services-base:11.0.1'
    compile 'com.google.android.gms:play-services-maps:11.0.1'
    compile 'com.google.android.gms:play-services-gcm:11.0.1'
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:24.2.0"
}

apply plugin: 'com.google.gms.google-services'

我真的无法理解firebase依赖的来源。

0 个答案:

没有答案