java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions

前端 未结 12 925
野的像风
野的像风 2020-12-05 04:32

I was getting this weird error on my google developer console. So i used google Cloud Test Lab to See whats really happening. turns out my app is failing on almost all devic

12条回答
  •  再見小時候
    2020-12-05 05:00

    with my case: Use FCM and Google map

    //for FCM
    compile 'com.google.firebase:firebase-messaging:9.4.0'
    //for Map
    compile 'com.google.android.gms:play-services:9.4.0'
    

    I have fixed: Removed

    compile 'com.google.android.gms:play-services:9.4.0'
    

    and Used

    compile 'com.google.android.gms:play-services-maps:9.4.0'
    compile 'com.google.android.gms:play-services-location:9.4.0'
    

    It worked fine.

提交回复
热议问题