我正在尝试使用flutter导入软件包,但出现以下错误:
"Target of URI doesn't exist: import 'package:supercharged/supercharged.dart';"
我要导入:supercharged package Flutter
我正在文件中添加以下导入;
import 'package:supercharged/supercharged.dart';
我的pubspect.yaml
看起来像这样:
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
line_awesome_flutter: 1.0.1
simple_animations: 2.2.2
sa_v1_migration: 1.1.2
supercharged: 1.10.0
cupertino_icons: ^1.0.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
我尝试过pub get
和pub upgrade
答案 0 :(得分:1)
如@Stefano Leone所述,如果重新启动编辑器无济于事,则可能是与IDE相关的安装问题。因此,您可以尝试重新安装VSCode或Android Studio。
这是Github上的类似问题。