颤抖错误:因为“ flutterApp”依赖于sqlflite,所以任何不存在的版本解析失败

时间:2020-10-06 18:26:53

标签: sql sqlite flutter dart sqflite

我正在遵循制作Note Keeper应用程序的教程,所以我按照他说的做了,并在pubspec.yaml中添加了这些依赖项: 依赖性: 扑: sdk:颤动 sqlflite:任意 path_provider:任意 国际:^ 0.16.1

他使用了intl:^ 0.15.7,但是我更改了它,因为它不起作用。 问题是,当我按下“ 获取软件包

时,它将一直显示这些消息并永久加载

[note_keeper] flutter pub get 在note_keeper中运行“ flutter pub get” ...
由于note_keeper依赖于sqlflite,因此不存在(无法在https://pub.dartlang.org处找到软件包sqlflite),因此版本解析失败。 pub失败(服务器不可用)-尝试重试1

您能帮我一下吗? :(!

1 个答案:

答案 0 :(得分:1)

dependencies: 
  flutter: 
    sdk: flutter 
  sqflite: ^1.3.1+1 // check the spelling of sqflite you have used `sqlflite` instead
  path_provider: any 
  intl: ^0.16.1