flutter - 无效的插件规范 moor_ffi 在 `pubspec.yaml` 中找不到 `flutter.plugin.platforms` 键
问题描述
我将颤振升级到最新版本,现在每次尝试构建时都会出现此错误。
无效的插件规范 moor_ffi。在文件中找不到
flutter.plugin.platforms
密钥。 可以在此处找到pubspec.yaml
格式化指令: https ://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platformspubspec.yaml
我不太确定如何解决这个问题,因为网上没有太多关于这个错误的信息,而且我在过去几天才开始使用颤振。
这是我的pubspec.yaml
文件
name: pattle
description: An easy to use Matrix app.
environment:
sdk: ">=2.6.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
matrix_sdk: ^0.33.0+1
async: ^2.3.0
bloc: ^3.0.0
flutter_bloc: ^3.2.0
provider: ^4.0.1
equatable: ^1.0.1
intl: ^0.17.0
cached_network_image: ^2.2.0+1
flutter_cache_manager: ^1.1.3
path_provider: ^1.6.5
path: ^1.6.4
sentry: ^3.0.1
device_info: ^0.4.1+1
package_info: ^0.4.0+5
# TODO: Use official package when PR is merged
flutter_html:
git:
url: https://github.com/pattle-org/flutter_html.git
ref: 71406a09f9e591f9d35635e6a086007ccc678ae3
flutter_dotenv: ^2.0.1
transparent_image: ^1.0.0
photo_view: ^0.4.2
url_launcher: ^5.1.0
image_picker: ^0.6.1+3
image: ^2.1.4
mime: ^0.9.6+3
shared_preferences: ^0.5.3+4
mdi: ^2.0.0
shimmer: ^1.1.0
flutter_svg: ^0.17.3+1
animations: ^1.0.0+5
characters: ^1.1.0
vibration: ^1.2.4
video_player: '>=0.10.11+1 <2.0.0'
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
firebase_core: ^0.4.0+9
firebase_messaging: ^6.0.13
flutter_local_notifications: ^0.8.4
dependency_overrides:
moor_ffi: 0.5.0
intl: 0.17.0-nullsafety.2
dev_dependencies:
flutter_launcher_icons: ^0.7.2+1
flutter_test:
sdk: flutter
effective_dart: ^1.2.1
intl_translation: ^0.17.9
flutter_icons:
android: true
ios: true
image_path_android: "assets/logo/launcher.png"
image_path_ios: "assets/logo/launcher_full.png"
adaptive_icon_background: "#aa4139"
adaptive_icon_foreground: "assets/logo/launcher_foreground.png"
# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
assets:
- .env
- assets/logo/logo.svg
fonts:
- family: CreteRound
fonts:
- asset: assets/fonts/crete_round_regular.ttf
- asset: assets/fonts/crete_round_italic.ttf
style: italic
任何想法是什么原因造成的?
这可能是答案 https://github.com/simolus3/moor/issues/727#issuecomment-662935493
但我不确定这个人是什么意思
添加对新 sqlite3_flutter_libs 包的依赖项
删除 moor_ffi 依赖并用新包替换导入:moor/ffi.dart 库
因为我对颤动很陌生
解决方案
flutter clean; pubdev get
为我工作
推荐阅读
- firebase - 我们可以像查询中的sql一样在firebase上进行查询吗
- python - 使用数据库平铺大量图像
- javascript - o调用 fnPagingInfo 函数时设置为空
- reactjs - Expo FileSystem.readAsStringAsync 无法读取文件
- ruby-on-rails - Ruby On Rails:Netflix fast_jsonapi 不渲染它定义的属性
- dynamics-crm - 自定义工作流活动不更新输入参数
- augmented-reality - 我想为我在 ARCORE 上构建的 AR 应用程序创建一个盒子的 3d 模型。我用什么?
- python - 如何获得基本比率通用报价 (python 3.x) (Interactive Broker)
- hyperledger-fabric - 截止日期前无法连接
- reactjs - 如何在axios中重定向?