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

后端 未结 15 1775
渐次进展
渐次进展 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:45

     GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
                .requestIdToken(getString(**R.string.default_web_client_id**))
                .requestEmail()
                .build();
    

    In my same case i changed requestIdToken and it worked.

提交回复
热议问题