无法使用谷歌提供商登录

时间:2018-01-13 13:03:35

标签: java android firebase firebase-authentication google-signin

今天我运行我的应用程序并且我无法登录但之前它正在运行。 我在logcat中遇到的异常。我怎么能让这个工作好吗?

我的项目包含producflavor,以防有助于找到解决方案。

01-12 09:00:52.831 3668-5987/? W/Bundle: Failed to parse Bundle, but defusing quietly
     android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.gms.auth.api.signin.internal.SignInConfiguration
     at android.os.Parcel.readParcelableCreator(Parcel.java:2545)
     at android.os.Parcel.readParcelable(Parcel.java:2471)
     at android.os.Parcel.readValue(Parcel.java:2374)
     at android.os.Parcel.readArrayMapInternal(Parcel.java:2727)
     at android.os.BaseBundle.unparcel(BaseBundle.java:269)
     at android.os.BaseBundle.getString(BaseBundle.java:992)
     at android.content.Intent.getStringExtra(Intent.java:6702)
     at com.android.server.am.ActivityStarter.startActivityLocked(ActivityStarter.java:341)
     at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1096)
     at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:5837)
     at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:5642)
     at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:176)
     at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3612)
     at android.os.Binder.execTransact(Binder.java:573)
    01-12 09:00:53.728 3668-3921/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=722, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]

请帮忙

1 个答案:

答案 0 :(得分:1)

使用与您相同的设备(三星Galaxy S6 Edge)时,我遇到过这个问题。我还测试了其他一些设备,但一切都运行良好。对我来说,这是三星异常,我忽略了它。但可以肯定的是,尝试在其他真实设备上进行测试。我还要求你看看SHA /证书/账户/签名,也许这是相关的。确保服务器客户端ID正确无误。

还尝试放置应用签名密钥,  详细信息here,OAuth 2.0客户端ID SHA-1指纹,而不是使用keytool生成的签名密钥。如果您已选中" Google Play App Signing"在Google Play控制台中,签名密钥可能无法使用。

Google Play Console -> App signing -> App signing certificate中验证您的应用签名密钥,然后在此复制SHA-1证书指纹并粘贴到Google API控制台OAuth 2.0客户端ID。