immadisairaj / gyro_maze

A simple maze game played using gyro sensors.
BSD 3-Clause "New" or "Revised" License
13 stars 0 forks source link

Dart SDK version failed #2

Open Genius19245 opened 1 year ago

Genius19245 commented 1 year ago

Nice game logic, could you please change this

Edit by owner (change the title and add the error below):

The current Dart SDK version is 2.18.2. 
Because gyro_maze depends on very_good_analysis >=4.0.0 which requires SDK version >=2.19.0 <3.0.0, version solving failed. pub get failed
(1; Because gyro_maze depends on very_good_analysis >=4.0.0 which requires SDK version >=2.19.0 <3.0.0, version solving failed.)
immadisairaj commented 1 year ago

Thank you @Genius19245

I suggest that you can update your flutter using flutter upgrade which will update the Dart SDK version too..

From the log you pasted, you have Dart version of 2.18. But, the latest stable version of dart is 2.19.6. So, the flutter upgrade will work fine.

If you don't want to flutter upgrade, then I suggest that you can downgrade the very_good_analysis version to probably 3.1.0 or below? inside pubspec.yaml under dev_dependencies and change the environment to the sdk version you prefer.

Let me know if you still face an issue.