I want to change my sdk version from 2.16.2 to 2.17.1 while I'm using android studio (for a single project only)
could someone please help me with this issue?
Thanks
CodePudding user response:
From File>Settings>Languages&Frameworks>Dart, Enable Dart support for the project, write dart sdk path
CodePudding user response:
Download the respective Dart package( https://dart.dev/get-dart/archive ) or the Flutter SDK (https://docs.flutter.dev/development/tools/sdk/releases) [in your case version 3.0.1) from the archive for your operating system.
Once downloaded, open your project in Android Studio and go to
In Windows
File > Settings > Languages & Frameworks > Flutter
In Mac
Preferences > Languages & Frameworks > Flutter
Change the path of Flutter SDK to the downloaded one. Or you can do the same for the Dart option in the same settings pane.
But always keep in mind that to change the Dart version which is compatible with the flutter version. So it is better to change the Flutter SDK path rather than Dart.
Once everything is done, restart the IDE.
Note: This method will only apply the changed version for the current project alone. Not even the terminal for the project won't be reflected, as the path would have been set for some other versions.
CodePudding user response:
In Android studio : Go to settings => plugin => dart (update dart)
And In terminal use command : flutter upgrade