它工作正常 . 只有我的登录配额超过一天调试并尝试使用电话号码和短信验证登录 . 这个配额自第二天开始恢复 .

我实施了Firebase Auth以使用电话号码和短信验证系统,还获得了用户的信息,如姓名和电子邮件,并将其成功存储在firebase数据库中 .

现在我想从用户那里获取图像并将其存储在firebase存储中,但昨天我不得不硬重置我的手机(LG VU3与Kitkat),今天当我尝试在我的手机上运行项目和安装应用程序时,它说

"This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed. Is app running on a physical device? ]"

Things i have tried.

1-我检查了我的包名和SHA1指纹是否以相同的项目名称正确存储在Firebase控制台中 .

2-我在Firebbase控制台中删除了项目并创建了新项目,在这个新项目中插入了我的应用程序包名称和SHA1指纹,并获得了新的google-services.json文件,并按照说明将其粘贴到我项目的app目录中 .

3-我在android studio中创建了一个新项目,并将所有java和xml代码复制到Android Studio中的这个新项目,并使用工具菜单中的firebase助手将该项目连接到firebase .

4-再次重复2和3选项 . Android中的新项目和Firebase控制台中的新项目,使用firebase助手连接它,一切似乎都没问题,但错误仍然存在 .

我的手机有什么问题吗?目前我没有任何其他手机来测试它,我无法在模拟器上测试,因为手机验证在模拟器上不起作用 .

这是Logcat .

I/FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions.
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
W/TAG: onVerificationFailed
       com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed. Is app running on a physical device? ]
           at com.google.android.gms.internal.zzeaw.zzaw(Unknown Source)
           at com.google.android.gms.internal.zzebo.zza(Unknown Source)
           at com.google.android.gms.internal.zzebp.run(Unknown Source)
           at android.os.Handler.handleCallback(Handler.java:733)
           at android.os.Handler.dispatchMessage(Handler.java:95)
           at android.os.Looper.loop(Looper.java:136)
           at android.app.ActivityThread.main(ActivityThread.java:5107)
           at java.lang.reflect.Method.invokeNative(Native Method)
           at java.lang.reflect.Method.invoke(Method.java:515)
           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
           at dalvik.system.NativeStart.main(Native Method)
E/TAG: This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed. Is app running on a physical device? ]