由于firebase版本,Android应用程序崩溃了

时间:2017-08-26 10:39:30

标签: android firebase firebase-realtime-database firebase-storage

我正在开发使用firebase作为后端的应用程序,这是我的build.gradle文件

 compile 'com.android.support:appcompat-v7:26.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.github.bumptech.glide:glide:4.0.0'
compile 'com.firebaseui:firebase-ui-auth:2.3.0'
compile 'com.google.firebase:firebase-auth:11.2.0'
compile 'com.google.firebase:firebase-database:11.2.0'
compile 'com.google.firebase:firebase-storage:11.2.0'

当我打开应用程序时,崩溃在这里是我的logcat`

08-26 12:29:33.886 32721-32754/com.example.fcb.dolaby E/JavaBinder: *** Uncaught remote exception!  (Exceptions are not yet supported across processes.)
                                                                java.lang.NoSuchMethodError: No static method zza(Landroid/os/Parcel;Landroid/os/Parcelable$Creator;)Landroid/os/Parcelable; in class Lcom/google/android/gms/internal/zzeg; or its super classes (declaration of 'com.google.android.gms.internal.zzeg' appears in /data/app/com.example.fcb.dolaby-2/split_lib_dependencies_apk.apk:classes6.dex)
                                                                    at com.google.android.gms.common.internal.zzaw.onTransact(Unknown Source)
                                                                    at android.os.Binder.execTransact(Binder.java:459)
                                                                    at android.os.BinderProxy.transactNative(Native Method)
                                                                    at android.os.BinderProxy.transact(Binder.java:512)
                                                                    at com.google.android.gms.common.internal.zzay.zza(Unknown Source)
                                                                    at com.google.android.gms.common.internal.zzd.zza(Unknown Source)
                                                                    at com.google.android.gms.common.api.internal.zzbw.run(Unknown Source)
                                                                    at android.os.Handler.handleCallback(Handler.java:815)
                                                                    at android.os.Handler.dispatchMessage(Handler.java:104)
                                                                    at android.os.Looper.loop(Looper.java:214)
                                                                    at android.os.HandlerThread.run(HandlerThread.java:61)

提前致谢

1 个答案:

答案 0 :(得分:1)

尝试更改此内容:

compile 'com.firebaseui:firebase-ui-auth:2.3.0'

对此:

compile 'com.firebaseui:firebase-ui-auth:2.1.1'

或者改变这个:

compile 'com.google.firebase:firebase-auth:11.2.0'
compile 'com.google.firebase:firebase-database:11.2.0'
compile 'com.google.firebase:firebase-storage:11.2.0'

对此:

compile 'com.google.firebase:firebase-auth:11.4.0'
compile 'com.google.firebase:firebase-database:11.4.0'
compile 'com.google.firebase:firebase-storage:11.4.0'

根据这个:

FirebaseUI版本 - Firebase / Play服务版

  

2.3.0 - 11.0.4

     

2.2.0 - 11.0.4

     

2.1.1 - 11.0.2

     

2.0.1 - 11.0.1

     

1.2.0 - 10.2.0

     

1.1.1 - 10.0.0或10.0.1

     

1.0.1 - 10.0.0或10.0.1

     

1.0.0 - 9.8.0

您可以阅读此链接Firebase ui

的完整自述文件