当我在调试模式下运行我的应用程序时,它连接到 firebase 并工作。没有问题。但是当我在发布模式下运行它时,出现以下错误并且应用程序根本没有打开。
MissingPluginException(在频道 plugins.flutter.io/firebase_core 上找不到方法 Firebase # initializeCore 的实现)
虽然我在网上尝试了很多方法,但都无法解决问题。如果你能帮助我,我将不胜感激......
Launching lib/main.dart on sdk gphone x86 64 in release mode...
Plugin `cloud_firestore` doesn't implement a plugin interface, nor sets a default implementation in pubspec.yaml.
To set a default implementation, use:
flutter:
plugin:
platforms:
macos:
default_package: <plugin-implementation>
To implement an interface, use:
flutter:
plugin:
implements: <plugin-interface>
Plugin `firebase_auth` doesn't implement a plugin interface, nor sets a default implementation in pubspec.yaml.
To set a default implementation, use:
flutter:
plugin:
platforms:
macos: …Run Code Online (Sandbox Code Playgroud)