Getting Exception java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions after updating to the new firebase

后端 未结 15 1652
渐次进展
渐次进展 2020-11-22 09:56

I have updated my application to the new firebase using the this and now when i compile my project i get the following exception.

Here is my logcat:

15条回答
  •  自闭症患者
    2020-11-22 10:42

    I downgraded my google play-service dependency from

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

    to

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

    which solved this issue for me.

    Please refer to the following Stack Overflow link for further description.


    Please Note: On upgrading to the latest google play-service
    compile 'com.google.android.gms:play-services:9.4.0' it solved this issue as well.

    Or you could selectively import certain services that you require, instead of importing all google play services.

提交回复
热议问题