Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The current Dart SDK version is 2.10.4. how can I change the version into a upper version .? In a beta or dev channel

Because classbe depends on cupertino_icons >=1.0.1 which requires SDK version >=2.12.0-0 <3.0.0, version solving failed. Running "flutter pub get" in classbe... pub get failed (1; Because classbe depends on cupertino_icons >=1.0.1 which requires SDK version >

like image 877
V.A. GODAKUMBURA Avatar asked Jan 06 '21 20:01

V.A. GODAKUMBURA


People also ask

What is the current Dart SDK version?

2-dev. 0.0. flutter-0a7dcf17eb.

How do I get the Dart SDK version?

Open Android Studio and click on Configure. Then, select Plugins. From the resulting screen, click on Flutter and click on Install. Click on Accept and then Yes to install the Dart plugin.


2 Answers

Update your pubspec.yaml depending on the flutter channel you want to work on:

If you are on stable channel :

environment:
  sdk: ">=2.10.5 <3.0.0"

dependencies:
  cupertino_icons: ^1.0.0

If you are on beta channel :

environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  cupertino_icons: ^1.0.1

Then if you are on stable channel (or beta),

flutter channel stable
# or flutter channel beta
flutter upgrade
flutter pub get
like image 69
Adrien Arcuri Avatar answered Nov 15 '22 09:11

Adrien Arcuri


flutter channel beta
flutter upgrade
like image 23
Randal Schwartz Avatar answered Nov 15 '22 10:11

Randal Schwartz