2017-02-07 20 views
-2

https://firebase.google.com/docs/auth/android/password-authで説明されているように、createUserWithEmailAndPasswordメソッドを使用してユーザーを作成しています。私はかなり私のfirebaseコンソールで、私は "電子メール/パスワード"サインインメソッドを有効にして、すべての手順を踏んだ。 コードFirebaseException:内部エラーが発生しました

 mAuth.createUserWithEmailAndPassword(mUserEmail, mPassword) 
      .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() { 
       @Override 
       public void onComplete(@NonNull Task<AuthResult> task) { 
        Log.d(TAG, ">>>>> createUserWithEmailAndPassword().onComplete() - Start"); 
        Log.d(TAG, "signInWithEmail:onComplete:" + task.isSuccessful()); 

        // If sign in fails, display a message to the user. If sign in succeeds 
        // the auth state listener will be notified and logic to handle the 
        // signed in user can be handled in the listener. 
        if (!task.isSuccessful()) { 
         Log.w(TAG, "signInWithEmail:failed", task.getException()); 
         Toast.makeText(CreateAccountActivity.this, R.string.log_error_occurred, 
           Toast.LENGTH_SHORT).show(); 
        } 

        mAuthProgressDialog.dismiss(); 
        Log.d(TAG, ">>>>> createUserWithEmailAndPassword().onComplete() - End"); 
       } 
      }); 

エラー:私は間違って

02-06 21:23:38.508 30878-30878/com.labs.kavayah.scio W/CreateAccountActivity: signInWithEmail:failed com.google.firebase.FirebaseException: An internal error has occurred. [ Bad Request ] at com.google.android.gms.internal.zzbix.zzcb(Unknown Source) at com.google.android.gms.internal.zzbiu$zzj.zza(Unknown Source) at com.google.android.gms.internal.zzbjf.zzcc(Unknown Source) at com.google.android.gms.internal.zzbjf$zza.onFailure(Unknown Source) at com.google.android.gms.internal.zzbja$zza.onTransact(Unknown Source) at android.os.Binder.execTransact(Binder.java:565)

わからないつもりです。

プロジェクトのGradle

playServicesVersion = '10.0.1' firebaseClientVersion='2.3.1'

アプリのGradle

//firebase - start 
compile "com.google.firebase:firebase-auth:$rootProject.ext.playServicesVersion" 
compile "com.google.android.gms:play-services-auth:$rootProject.ext.playServicesVersion" 
compile "com.google.firebase:firebase-database:$rootProject.ext.playServicesVersion" 
compile "com.google.firebase:firebase-messaging:$rootProject.ext.playServicesVersion" 
compile "com.google.firebase:firebase-config:$rootProject.ext.playServicesVersion" 
compile "com.google.firebase:firebase-analytics:$rootProject.ext.playServicesVersion" 
compile "com.google.android.gms:play-services-ads:$rootProject.ext.playServicesVersion" 
compile "com.google.firebase:firebase-crash:$rootProject.ext.playServicesVersion" 
compile "com.firebase:firebase-client-android:$rootProject.ext.firebaseClientVersion" 
compile "com.google.firebase:firebase-appindexing:$rootProject.ext.playServicesVersion" 
//firebase - end 
+1

'firebase-client-android'という新しいレガシーFirebase SDKを新しいSDKの' firebase-database'などで使うのは良い習慣ではありません。 。 –

答えて

0

@qbix私は、新しいものへの指摘に感謝し、古いAndroidのクライアントライブラリのコードを移行されます。私はそれが他の人を助けることを望んでいる、私の場合の問題は、私は2つのSHAの指紋証明書、古いものと新しいものを持っていたことを確認してくださいあなたがGoogleプロジェクトAPIコンソールで使用しているSHAキーは、 SHA指紋。

一度古いものをすべて削除しても問題ありません。

関連する問題