BiChannelGoogleApi: [FirebaseAuth:] getGoogleApiForMethod () вернул Gms: com.google.firebase.auth.api.internal. zzaq@a34f859 - PullRequest
0 голосов
/ 20 апреля 2020

Я некоторое время работаю над мобильным приложением, использующим android и Firebase, но только сейчас я сталкиваюсь с некоторыми проблемами, как вы можете видеть здесь

I/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms:com.google.firebase.auth.api.internal.zzaq@f3584ed

Кроме того, имейте в виду, что уже добавили пользователей когда я тестирую приложение и проверяю электронную почту и пароль, как вы видите: enter image description here

вот мое приложение:

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'    

/...

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.2.0-alpha06'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-auth:19.3.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

//firebase
implementation 'com.google.firebase:firebase-analytics:17.3.0'
implementation 'com.google.firebase:firebase-auth:19.3.0'

implementation files('libs/ojdbc14.jar')
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'org.springframework.android:spring-android-rest-template:2.0.0.M1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.4.1.3'
}

проект gradle:

buildscript {

repositories {
    google()
    jcenter()

}
dependencies {

    classpath 'com.android.tools.build:gradle:3.6.1'
    classpath 'com.google.gms:google-services:4.3.3'


    // NOTE: Do not place your application dependencies here; they  belong
    // in the individual module build.gradle files
}

моя проблема в том, что когда я вхожу в систему с зарегистрированным и подтвержденным пользователем, вот моя функция входа в систему:

private void verifyLogin(View view) {

    if ( !ValidatePassword()  || !ValidateEmail()){
        return;
    }

    final FirebaseAuth firebaseAuth = FirebaseAuth.getInstance();

    String email= login_email_field.getText().toString();
    String password= login_password_field.getText().toString();
    Log.d("password", password);
    Log.d("email", email);

    firebaseAuth.signInWithEmailAndPassword(email,password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {
        @Override
        public void onComplete(@NonNull Task<AuthResult> task) {
            if (task.isSuccessful()){
                if (firebaseAuth.getCurrentUser().isEmailVerified()){

                            Intent intent = new Intent(getApplicationContext(), PublicHomeActivity.class);
                            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
                            startActivity(intent);


                }
            }
        }
    });
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...