Android auth firebase error: Local module descriptor class for com.google.firebase.auth not found

前端 未结 5 756
遇见更好的自我
遇见更好的自我 2020-12-06 17:48
  • I\'m trying to build an app with login/register capabilities through Firebase. I\'m working on it with a partner (he\'s on Linux, I\'m on Mac), and he\'s able to get t
相关标签:
5条回答
  • 2020-12-06 18:19

    Option 1: Go to Firebase Console < Authentication < SIGN-IN METHOD, and see if you are using it in the Anonymous state. If you are, disable that and enable Email/Password or whichever login method you are using.

    Option 2: Check if the device you are testing with is running Google Play Services 9.0.0 or later.

    0 讨论(0)
  • 2020-12-06 18:23

    Can you check your Google Play Services version?

    Prerequisites :

    • An Android device running Google Play services 9.0.0 or later
    • The Google Play services SDK from the Android SDK Manager
    • Android Studio 1.5 or higher
    • An Android Studio project and its package name.

    One of the reason for this problem could be, your Sign In Method inside Firebase > Auth Dashboard might be disabled.

    EDIT

    The 10.2.1 version wasn't available for downloading from any (virtual) device that you tested, required update.

    The version of Google Play Services shown in the Extras section at the bottom of the Standalone SDK Manager has no effect on the version used by an emulator. The emulators run on system images configured to contain some particular version of Play Services, which is not always the same.

    You should confirm that you have downloaded the latest emulator images having version compatibility like version 10.2.1(latest).

    0 讨论(0)
  • 2020-12-06 18:31

    Add a log in onComplete() listener of createUserWithEmailAndPassword() to see what exactly is the reason behind the failure.

       if (!task.isSuccessful()) {
        Log.e(TAG, "onComplete: Failed=" + task.getException().getMessage()); 
        }
    

    This can be due to the password or email you entered to create an account. Check:

    • if the email you entered is in proper format and does exist.
    • if password is strong enough to be accepted (usually not less than 6 letters).
    • if there is already an account with the same email.
    0 讨论(0)
  • 2020-12-06 18:33

    In my case, I was debugging the application and was missing the SHA1 Key in my firebase project configuration. If you are debugging make sure you have your SHA1 Key in place.

    0 讨论(0)
  • 2020-12-06 18:35

    Same thing happened with me because I was using old auth version as you can see the old one is mentioned and commented out and the new one is at the bottom inside dependencies.

    So always try to follow dependencies that are mentioned here

    0 讨论(0)
提交回复
热议问题