So, I’m using flutter version 2.2.3 and can’t upgrade right now. But, my other project need higher SDK. I know, there is FVM. But I found this:
Any suggestion please?
CodePudding user response:
if you are using vs code you can click ctrl shift p
or command shift p
and search for "select SDK" and select your SDK.
CodePudding user response:
I’ve found the answer:
- Open workspace setting with CMD SHFT P, I choose not JSON version
- Search for “SDK”
- Add item with both of flutter version (mine: /User/me/flutter and /User/me/flutter-master)
And voila! I can choose other versions
CodePudding user response:
FVM is a good choice, but if you want to use built-in mechanism, you'll have to:
- Download different Flutter versions (from here)
- In VSCode set SDK paths (inside
.vscode/settings.json
file for single project or globally in settings):
{
"dart.sdkPaths": [
"/Users/user/flutter/stable"
"/Users/user/flutter/beta"
]
}