【发布时间】:2021-02-12 10:55:15
【问题描述】:
google_fonts 和 shared_preferences 的未处理插件异常出现错误:
未处理的异常:MissingPluginException(未找到实现 对于通道 plugins.flutter.io/shared_preferences 上的方法 getAll) 未处理的异常:MissingPluginException(未找到实现 对于通道上的方法 getApplicationSupportDirectory plugins.flutter.io/path_provider) MethodChannel.invokeMethod (包:flutter/src/services/platform_channel.dart:332:12) _localPath(包:google_fonts/src/file_io_desktop_and_mobile.dart:28:27)
googleFontsTextStyle (包:google_fonts/src/google_fonts_base.dart:107:3)
【问题讨论】:
-
google_fonts 和 shared_preferences 的未处理插件异常出现错误
-
停止您的应用,关闭 vscode(或 android studio)并重新打开它并再次运行 pub get,它应该可以解决您的问题
-
感谢您的回复,但 id 无效@DungNgo
-
您是否也可以尝试运行“flutter clean build”并重新构建您的应用程序
标签: flutter