firebase - Flutter 应用程序无法编译,因为它的依赖关系无法建立
问题描述
这是“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 !!!!
这里发生了什么??有人可以帮助我,因为我找不到解决方案。
谢谢你。
解决方案
尝试取出导入中的库。这是因为firestoreflutter
自动为你放入了一个lib,导致错误中看到了这两个lib
推荐阅读
- hive - 基于另一列的最大值的新列重复值
- javascript - 在显示 2 个 div 之间切换
- java - 使 BottomSheet 的某些部分透明
- c# - 如何在 Xamarin.Forms 中的 Android 特定页面和共享页面之间导航?
- javascript - If, else if, statements : Uncaught ReferenceError: Invalid left-hand side in assignment
- c++ - AES-128 CBC 模式下加密流末尾的 Crypto++ 额外块
- java - Spring Boot Data JPA 和 PostgreSQL 自动生成枚举类型
- r - rbindlist - 如何获取有关源信息的附加列?
- azure-devops - 如何使用 YAML 从 Artifactory 恢复包
- tree - 端点返回的 Content-Type: text/html 不能被 SELECT 查询识别