Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter requires SDK version

Tags:

flutter

I have this error:

Running "flutter packages upgrade" in bingo360...                The current Dart SDK version is 2.1.2-dev.0.0.flutter-0a7dcf17eb. Because bingo360 depends on flutter_launcher_icons >=0.7.1 which requires SDK version >=2.2.0 <3.0.0, version solving failed. pub upgrade failed (1) 

My pubspec.yaml is:

environment: sdk: ">=2.1.0 <3.0.0"  dependencies:   flutter:     sdk: flutter  cupertino_icons: ^0.1.2 http: ^0.12.0+1 flutter_launcher_icons: "^0.7.2"  dev_dependencies:   flutter_test:   sdk: flutter 

I try to change to sdk: ">2.2.0 <3.0.0" but not works.

Any suggest?

like image 310
Italo Rodrigo Avatar asked May 28 '19 23:05

Italo Rodrigo


People also ask

How do I get the flutter SDK version?

Checking Flutter SDK Version and Channel You'll see something like below in your terminal window: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.10. 3, on macOS 12.1 21C52 darwin-x64, locale en) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.

Does flutter come with dart SDK?

Yes, Flutter comes with Flutter DevTools (also called Dart DevTools).


2 Answers

Go to 'Tools' -> Flutter -> 'Flutter Upgrade'

See if that works it out. If it's the SDK that needs upgrading you can't manually alter it

like image 155
James 666 Avatar answered Sep 19 '22 02:09

James 666


do this on your terminal :

flutter upgrade --force 
like image 31
Adam Musa Avatar answered Sep 19 '22 02:09

Adam Musa