这是'main.dart'中的导入语句
import 'package:firestoreflutter/lib/ui/listveiw_note.dart';
我可以确认文件存在!然而,当我去编译时,我得到了错误消息:
Your application could not be compiled, because its dependencies could not
be established.
The following Dart file:
/home/jedaa/workspace/flutter_apps/studio/firestoreflutter/lib/main.dart
refers, in an import, to the following library: /home/jedaa/workspace/flutter_apps/studio/firestoreflutter/lib/lib/ui/listveiw_note.dart
Unfortunately, that library does not appear to exist on your file system.
当然,它不存在,import语句也没有说要看那里。。即:/lib/lib/ui!!!!
这是怎么回事??有人能帮我吗,因为我找不到解决办法。
谢谢。
您的导入中有打字错误,这是正确的导入
import 'package:firestoreflutter/lib/ui/listview_note.dart'
请确认。感谢
尝试在导入中取出lib。这是因为firestoreflutter
自动为您放入一个库,导致在错误中看到这两个库
您可以尝试"sudo chmod-R775xxx/studio";到整个工作室