为什么我在 flutter 中遇到这个错误,它是在我尝试生成 SHA 1 密钥时启动的,但之后它不断显示?

Why do I facing this error in flutter, it was started when i was trying to generate SHA 1 key but after that it is showing constantly?

提问人:Ayush Pandey 提问时间:10/23/2023 更新时间:10/23/2023 访问量:25

问:

解决此错误,我工作时没有任何错误,但是当我获取 SHA 1 密钥时,此错误开始了。E/flutter ( 5777): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(null-error, Host platform returned null value for non-null return value., null, null) E/flutter ( 5777): #0 FirebaseCoreHostApi.optionsFromResource (package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart:248:7) E/flutter ( 5777): <asynchronous suspension> E/flutter ( 5777): #1 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:89:25) E/flutter ( 5777): <asynchronous suspension> E/flutter ( 5777): #2 Firebase.initializeApp (package:firebase_core/src/firebase.dart:43:31) E/flutter ( 5777): <asynchronous suspension> E/flutter ( 5777): #3 main (package:farmery/main.dart:17:3)

flutter firebase null 运行时错误

评论

0赞 For Stack 10/23/2023
您是否在项目级文件和应用程序级文件中添加了 Firebase SDK 依赖项?build.gradlebuild.gradle
0赞 Community 10/23/2023
请澄清您的具体问题或提供其他详细信息以准确说明您的需求。正如目前所写的那样,很难确切地说出你在问什么。
0赞 AppSolves 10/23/2023
请分享您在 和main.dartbuild.gradle

答: 暂无答案