How to setup flutter local environment?

First, you need to get Flutter SDK from here. Once you download the SDK, you need to extract and keep it in a folder(which won't require admin access). You also need to set environment variables under user variables, Select the path, click new and add your flutter SDK like below



Then you need to download Android Studio from here.

Once you download Andriod Studio, In the android studio welcome screen you need to navigate config→plugins.

Also, you need to install command-line tools. File→Settings→Search "SDK" → under SDK tools you will find "Andriod SDK command-line tools". Select it and download applies the changes and press ok.


Also, you need to agree to Andriod Licenses. Open Command Prompt and type this command "flutter doctor --android-licenses" and click enter. You need to accept a few licenses by confirming (y/N).

You need to look for the Flutter plugin and install it. It will also install the Dart plugin. Once it is installed restart IDE to reflect the installation changes. Then  Andriod Studio will so an option to create a flutter project like below.



If you are facing any error, Open the command prompt and execute the flutter doctor command. A successful installation will be like below.






Comments

Popular Posts