提问人:Ayush Pandey 提问时间:10/23/2023 更新时间:10/23/2023 访问量:25
为什么我在 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?
问:
解决此错误,我工作时没有任何错误,但是当我获取 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)
答: 暂无答案
评论
build.gradle
build.gradle
main.dart
build.gradle