flutter error: Because "flutterApp" depends on sqlflite any which doesn't exist version solving failed

2.1k views Asked by At

I am following a tutorial to make a Note Keeper Application, so I did as he said and added these dependencies in pubspec.yaml: dependencies: flutter: sdk: flutter sqlflite: any path_provider: any intl: ^0.16.1

he used intl: ^0.15.7 , but I changed it because it didn't work. the prblem is that it's just keep showing these messages and loading forever when I press "get packages"

[note_keeper] flutter pub get Running "flutter pub get" in note_keeper...
Because note_keeper depends on sqlflite any which doesn't exist (could not find package sqlflite at https://pub.dartlang.org), version solving failed. pub get failed (server unavailable) -- attempting retry 1

could you help me and tell what to do please? :( !

1

There are 1 answers

3
Abhishek Ghaskata On BEST ANSWER
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