Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No virtual method verifyPhoneNumber #1868

Closed
colorgold opened this issue Nov 18, 2020 · 2 comments
Closed

No virtual method verifyPhoneNumber #1868

colorgold opened this issue Nov 18, 2020 · 2 comments

Comments

@colorgold
Copy link

Welcome to FirebaseUI and thanks for submitting an issue!

Please take a look at open issues, as well as resolved issues, to see if your issue is either already being addressed, or has been solved by someone else.

If not, please feel free to fill in the following info so we can help faster!

Step 1: Are you in the right place?

  • For issues or feature requests related to the code in this repository file a GitHub issue.
  • For general technical questions, post a question on StackOverflow tagged appropriately.
  • For general Firebase discussion, use the firebase-talk google group
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel

Step 2: Describe your environment

  • Android device: motorola one vision_
  • Android OS version: _10
  • Google Play Services version: _4.3.4
  • Firebase/Play Services SDK version: 19.0.0_
  • FirebaseUI version: 6.4.0

Step 3: Describe the problem:

Since I upgraded to com.google.firebase:firebase-auth:20.0.1, my app crashes when users try to register/login using their phone numbers

Steps to reproduce:

  1. Create a sign in intent builder with phone provider_
  2. Choose phone number_
  3. _App crashes when phone number selected

Observed Results:

  • What happened? This could be a description, logcat output, etc.
Fatal Exception: java.lang.NoSuchMethodError
No virtual method verifyPhoneNumber(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/Executor;Lcom/google/firebase/auth/PhoneAuthProvider$OnVerificationStateChangedCallbacks;Lcom/google/firebase/auth/PhoneAuthProvider$ForceResendingToken;)V in class Lcom/google/firebase/auth/PhoneAuthProvider; or its super classes (declaration of 'com.google.firebase.auth.PhoneAuthProvider' appears in base.apk!classes2.dex)

com.firebase.ui.auth.ui.phone.PhoneNumberVerificationHandler.verifyPhoneNumber (PhoneNumberVerificationHandler.java:32)
com.firebase.ui.auth.ui.phone.CheckPhoneNumberFragment.onNext (CheckPhoneNumberFragment.java:164)
com.firebase.ui.auth.ui.phone.CheckPhoneNumberFragment.start (CheckPhoneNumberFragment.java:155)
com.firebase.ui.auth.ui.phone.CheckPhoneNumberFragment.access$100 (CheckPhoneNumberFragment.java:37)
com.firebase.ui.auth.ui.phone.CheckPhoneNumberFragment$2.onSuccess (CheckPhoneNumberFragment.java:113)
com.firebase.ui.auth.ui.phone.CheckPhoneNumberFragment$2.onSuccess (CheckPhoneNumberFragment.java:110)
com.firebase.ui.auth.viewmodel.ResourceObserver.onChanged (ResourceObserver.java:69)
com.firebase.ui.auth.viewmodel.ResourceObserver.onChanged (ResourceObserver.java:19)

Expected Results:

  • What did you expect to happen?
    I expected to get a text message with a verification number.

Relevant Code:

startActivityForResult(
                  AuthUI.getInstance().createSignInIntentBuilder()
                          .setAvailableProviders(phoneProvider)
                          .setTheme(R.style.BlankTheme)
                          .build(),REQUEST_SIGN_IN
          );
// TODO(you): code here to reproduce the problem
@samtstern
Copy link
Contributor

@colorgold FirebaseUI 6.4.0 is only compatible with firebase-auth versions 19.x and below. If you want to use firebase-auth 20.x you need to upgrade to FirebaseUI 7.0.0 or higher.

The main breaking changes in firebase-auth 20.0.0 were around phone auth, that's why you see this crash.

@colorgold
Copy link
Author

@colorgold FirebaseUI 6.4.0 is only compatible with firebase-auth versions 19.x and below. If you want to use firebase-auth 20.x you need to upgrade to FirebaseUI 7.0.0 or higher.

The main breaking changes in firebase-auth 20.0.0 were around phone auth, that's why you see this crash.

I forgot to check for FirebaseUI update and was only upgrading the auth and database. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants