当前位置: 首页 > 工具软件 > URI.Dart > 使用案例 >

Flutter 导包错误 Target of URI doesn't exist 'package:english_words/english_words.dart'

巫马淳
2023-12-01

https://flutter.io/using-packages/ 官方使用导包教程

 

Stop and restart the app, if necessary

If the package brings platform-specific code (Java/Kotlin for Android, Swift/Objective-C for iOS), that code must be built into your app. Hot reload and hot restart do this only for the Dart code of the package, so you may have to do a full restart of the app to avoid errors like MissingPluginException when using the package

 

重启编译器。这里我使用的是vscode

 

 类似资料: