Press "Enter" to skip to content

错误记录:No implementation found for method getAll on channel

Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel dev.fluttercommunity.plus/package_info)

原因:插件使用原生功能导致了问题

解决: 在runApp(MyApp()); 函数前加入   WidgetsFlutterBinding.ensureInitialized();

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(MyApp());
}

需要 flutter clean

然后 flutter pub get

从新进入app

发表评论