How to update the Flutter SDK?

Viewed 96266

I'm new in Flutter. 2 months ago I have installed flutter SDK in windows. Now I have seen a lot of updates available.

I want to update "Flutter SDK".

How to update Flutter SDK to the latest version?

9 Answers

You can write

flutter upgrade 

command in terminal to update flutter sdk

I want to upgrade most latest version. So I used below commands:

flutter channel dev

Flutter has 4 project branches / channels ie stable, master, dev, beta. First when we install it. flutter install stable channel.

If you want to switch :

flutter channel chanel_name

Then update that :

flutter upgrade

Open your terminal and type

flutter upgrade --force

Sometime flutter upgrade seems not responsive but actually it's doing something. Just add the -v or --verbose option to see what actually happening.

flutter upgrade --verbose

We can upgrade the flutter by simply using Flutter command forcefully.

Like this one :

flutter upgrade --force

But before that we will have to make sure & take a note of few things otherwise it can be risky & we might loss some of our work as well.

Important Note :

  • While upgrading the flutter make sure all of your local work is already pushed to the server & you do have a proper back up of all of your code
  • Make sure you do have a back of all live changes you did & with working condition

Hopefully this will help out everyone.

Using Tool Menu:

You can update in android studio using Tools so follow these steps Android Studio -> Tools -> Flutter -> Flutter Upgrade.

enter image description here

Using Command:

You can write a command in the terminal to update flutter SDK

flutter upgrade 

Or if you have to upgrade it any way you can use

flutter upgrade --force

A very much simple way is to go and download the new SDK and extract the the folder. Then replace the old sdk folder with the new one

Just run the flutter upgrade in terminal.

Or if you have to upgrade it any way you can use flutter upgrade --force

In Android Studio , in toolbar at top of the screen go to Android Studio -> Tools -> Flutter -> Flutter Upgrade.[Tools -> Flutter -> Flutter Upgrade.

Or open terminal and type command: flutter upgrade and hit Enter.

Related