firebase - 由于 firebase_database,Dart 迁移失败
问题描述
当我尝试跑步时
dart migrate
我得到:
Bad state: Error: package has unmigrated dependencies.
Before migrating your package, we recommend ensuring that every library it
imports (either directly or indirectly) has been migrated to null safety, so
that you will be able to run your unit tests in sound null checking mode. You
are currently importing the following non-null-safe libraries:
package:firebase_database/firebase_database.dart
package:firebase_database/src/utils/push_id_generator.dart
但是当我运行 flutter pub 时会过时
flutter pub outdated --mode=null-safety
Showing dependencies that are currently not opted in to null-safety.
[✗] indicates versions without null safety support.
[✓] indicates versions opting in to null safety.
All your dependencies declare support for null-safety.
在我的 pubscpec.yaml
firebase_database: ^6.1.0
解决方案
推荐阅读
- linux - 如何从监控中排除linux缓存内存,只监控应用程序消耗的内存
- android - 如何在无活动类中使用 textToSpeech?
- javascript - 如何找到动态创建的 li 的宽度
- ios - 来自请求 http://itunes.apple.com/lookup?bundleId=\(identifier) 的错误 App Store 应用程序版本号
- r - 数据框的ggplot uotcome需要改进
- python-3.x - Faster R-CNN 在实时预测中更慢
- c++ - 在 z3 中存储暗示()函数的参数
- node.js - AWS 服务的文本提取方法“getDocumentTextDetection”只返回“JobStatus”,没有其他响应
- java - 有没有一种方法可以在 EditText 中连接不同的活动 TextView?
- javascript - 如何使用三重...点符号将数组传递给另一个函数?