代码之家  ›  专栏  ›  技术社区  ›  theerasan tonthongkam

从firebase远程配置调用fetch()时应用程序崩溃

  •  0
  • theerasan tonthongkam  · 技术社区  · 6 年前

    我尝试从远程配置调用fetch,但出现了此错误。

    我使用的依赖项。

    def google_play_version = "11.8.0"
    
    compile "com.google.firebase:firebase-core:$google_play_version"
    compile "com.google.firebase:firebase-messaging:$google_play_version"
    compile "com.google.firebase:firebase-config:$google_play_version"
    compile "com.google.firebase:firebase-analytics:$google_play_version"
    

    以及错误

    05-24 16:49:33.175 8637-8713/com.eatigo.merchant.staging E/AndroidRuntime: FATAL EXCEPTION: GoogleApiHandler
        Process: com.eatigo.merchant.staging, PID: 8637
        java.lang.NoSuchMethodError: No static method zzz(Ljava/lang/Object;)Ljava/lang/Object; in class Lcom/google/android/gms/common/internal/zzaa; or its super classes (declaration of 'com.google.android.gms.common.internal.zzaa' appears in /data/app/your.package.staging-2/base.apk:classes15.dex)
            at com.google.android.gms.measurement.internal.zzx.zzbd(Unknown Source)
            at com.google.android.gms.measurement.AppMeasurement.getInstance(Unknown Source)
            at com.google.android.gms.internal.zzbhp.zzdc(Unknown Source)
            at com.google.android.gms.internal.zzbhp.zzdd(Unknown Source)
            at com.google.android.gms.internal.zzbhr.zza(Unknown Source)
            at com.google.android.gms.internal.zzbht.zza(Unknown Source)
            at com.google.android.gms.common.api.internal.zzm.zzb(Unknown Source)
            at com.google.android.gms.common.api.internal.zzc.zza(Unknown Source)
            at com.google.android.gms.common.api.internal.zzbo.zzb(Unknown Source)
            at com.google.android.gms.common.api.internal.zzbo.zzaiw(Unknown Source)
            at com.google.android.gms.common.api.internal.zzbo.onConnected(Unknown Source)
            at com.google.android.gms.common.internal.zzac.onConnected(Unknown Source)
            at com.google.android.gms.common.internal.zzn.zzakr(Unknown Source)
            at com.google.android.gms.common.internal.zze.zzw(Unknown Source)
            at com.google.android.gms.common.internal.zzi.zzaks(Unknown Source)
            at com.google.android.gms.common.internal.zzh.handleMessage(Unknown Source)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:234)
            at android.os.HandlerThread.run(HandlerThread.java:61)
    
    1 回复  |  直到 6 年前
        1
  •  0
  •   theerasan tonthongkam    6 年前

    我只是更新了我的gms:播放版本到最新的Gradle

    推荐文章