gpt4 book ai didi

java - firebase.auth.PhoneAuthProvider 缺失

转载 作者:行者123 更新时间:2023-11-29 19:05:50 28 4
gpt4 key购买 nike

我已将我的 android 应用程序与 firebase 连接,并在控制台上启用了电话身份验证。但是当我导入时

import com.google.firebase.auth.PhoneAuthProvider;

找不到类 PhoneAuthProvider。请注意,它可以找到其他类,例如 EmailAuthProvider 和 FirebaseAuthProvider。

compile 'com.google.firebase:firebase-auth:10.0.1'

在应用依赖项中列出。

如果我还需要提供任何其他信息以获得帮助,请告诉我。

最佳答案

电话号码认证是added in version 11.0.0 .您必须至少升级到该版本。

SDK Version 11.0.0 - June 7, 2017

  • Added the getPhoneNumber() and updatePhoneNumber() methods to the FirebaseUser class, and also added the getPhoneNumber() method to the UserInfo class. These methods get and update the phone numbers of users.

  • Added the PhoneAuthCredential, PhoneAuthProvider, PhoneAuthProvider.ForceResendingToken, and PhoneAuthProvider.OnVerificationStateChangedCallbacks classes to support authentication using phone numbers.

关于java - firebase.auth.PhoneAuthProvider 缺失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47266485/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com