hi_video报错
来源:14-8 本章作业

慕仔5555278
2022-06-25
老师,
在component/hi_video/lib/下的两个dart文件引入 import ‘package:hi_base/color.dart’;都报错,
错误如下:
Target of URI doesn’t exist: ‘package:hi_base/color.dart’. (Documentation) Try creating the file referenced by the URI, or Try using a URI for a file that does exist.
有对比老师的文件,是一样的,而且hi_video下的yaml文件也有引入
dependencies:
hi_base:
path: …/hi_base
请问是什么原因呢,谢谢
写回答
1回答
-
CrazyCodeBoy
2022-06-26
1.确认下在hi_base/color.dart文件是否存在。
2.执行下flutter pub get 然后再试下。00
相似问题