[英]MissingPluginException for Linux desktop app
剛剛為我的顫振應用程序添加了桌面支持,它在 android 模擬器中運行良好,但不會在瀏覽器和桌面中呈現任何元素,只是一個沒有錯誤的簡單空白頁面。
這是我在控制台中遇到的錯誤,不確定該錯誤是否真的是問題,因為它來自firebase
。
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
Debug service listening on ws://127.0.0.1:40449/v58VaNveMLo=/ws
Syncing files to device Linux...
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method Firebase#initializeCore on channel plugins.flutter.io/firebase_core)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7)
<asynchronous suspension>
#1 MethodChannel.invokeListMethod (package:flutter/src/services/platform_channel.dart:363:35)
<asynchronous suspension>
#2 MethodChannelFirebase._initializeCore (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:31:23)
<asynchronous suspension>
#3 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:73:7)
<asynchronous suspension>
#4 Firebase.initializeApp (package:firebase_core/src/firebase.dart:42:31)
<asynchronous suspension>
#5 main (package:sqlite_provider_starter/main.dart:9:3)
<asynchronous suspension>
任何幫助表示贊賞!
目前,Android、IOS、MacOS 和 Web 支持firebase_core
包。 Linux
尚不支持它。 根據主機平台有條件地執行基於該包的操作的代碼部分。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.