title: Firebase email and password authentication fails
body: <p>Firebase email and password authentication fails even though I have it activated in the Firebase console and the code for that activity is from the github sample.</p>
  
  <p>Also I have added a user manually so everything is there.</p>
  
  <p>I am doing as in this link describes:
  <a href="https://github.com/firebase/quickstart-android/blob/master/auth/app/src/main/java/com/google/firebase/quickstart/auth/EmailPasswordActivity.java" rel="nofollow">Firebase instructions</a></p>
  
  <p><strong>Update</strong> </p>
  
  <p>Here is the code for the signing in method:</p>
  
  <pre><code>mAuth.signInWithEmailAndPassword(email, password)
       .addOnCompleteListener(this, new OnCompleteListener&lt;AuthResult&gt;() {
          @Override
          public void onComplete(@NonNull Task&lt;AuthResult&gt; task) {
            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", task.getException());
              Toast.makeText(EmailPasswordActivity.this, "Authentication failed.",
              Toast.LENGTH_SHORT).show();
            }
  
            // [START_EXCLUDE]
            hideProgressDialog();
            // [END_EXCLUDE]
          }
        });
  </code></pre>
  
  <p><strong>Update 2</strong></p>
  
  <p>I have also tried to do this and I does not work either:</p>
  
  <pre><code>private void signInBeta(String email,String password){
    Firebase ref = new Firebase("https://prechecker-46a58.firebaseio.com/");
  
    ref.authWithPassword(String.valueOf(email), String.valueOf(password), new Firebase.AuthResultHandler() {
      @Override
      public void onAuthenticated(AuthData authData) {
        System.out.println("User ID: " + authData.getUid() + ", Provider: " + authData.getProvider());
      }
  
      @Override
      public void onAuthenticationError(FirebaseError firebaseError) {
        System.out.print("\nSOMETING WENT WRONG\n");
      }
    });
  }
  </code></pre>