Android Firebase身份验证:联合Google登录在Oreo中不起作用

Android Firebase身份验证:联合Google登录在Oreo中不起作用,android,firebase,firebase-authentication,google-signin,Android,Firebase,Firebase Authentication,Google Signin,这段代码: private void firebaseAuthWithGoogle(GoogleSignInAccount acct) { AuthCredential credential = GoogleAuthProvider.getCredential(acct.getIdToken(), null); mAuth.signInWithCredential(credential) .addOnCompleteListener(this, task -> {

这段代码:

private void firebaseAuthWithGoogle(GoogleSignInAccount acct) {
AuthCredential credential = GoogleAuthProvider.getCredential(acct.getIdToken(), null);
mAuth.signInWithCredential(credential)
    .addOnCompleteListener(this, task -> {
        if (task.isSuccessful()) {
            // Sign in success, update UI with the signed-in user's information
            FirebaseUser user = task.getResult().getUser();
            mMainViewModel.setGoogleLoginResult(user);
        } else {
            // If sign in fails, display a message to the user.
            mMainViewModel.setGoogleLoginResult(null);
        }
    });
}
我从这里得到:

在牛轧糖装置上工作正常,但在奥利奥装置上不起作用

这是我的身材。格雷德尔:

compileSdkVersion 28
buildToolsVersion '28.0.0'

// Firebase
implementation "com.google.firebase:firebase-core:16.0.1"
implementation "com.google.firebase:firebase-auth:16.0.2"
implementation "com.google.firebase:firebase-database:16.0.1"
我已经在每个设备上调试了这两个;工作(牛轧糖)和不工作(奥利奥),但没有发现差异


有什么线索吗?

在过去几天里,我得到了Firebase团队的一些帮助,以及今天早上代码如何工作(在Oreo设备上)。我这边什么都没做过,不知道他们做了什么。

你说的“不工作”是什么意思?您是否收到任何错误消息?它没有调用.addOnCompleteListener。既不成功也不失败。logcat中没有错误消息。