How to Setup Flutter in Android Studio - macOS
- First of all you need an android studio in your system to configure flutter .
- Download Android sdk from this given link :- https://developer.android.com/studio
- Download Flutter sdk from this given link :- https://docs.flutter.dev/get-started/install/windows
- Once you download Flutter Sdk extract the zip file and move the contained flutter to the desired location.
- After that, update the path location .
- To update the PATH variable for the current terminal window only, then enter this command “export PATH=”$PATH:`pwd`/flutter/bin” and hit enter.
- To update the PATH variable permanently, then Open or create a .bash_profile file. to open or create that file, then enter “sudo open -e $HOME/.bash_profile” and hit enter key.
- In system variables there is a path option select it and click on edit button.
- Append the below line to the bash_Profile at the bottom of all contents. “Export PATH =”$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin”” as [PATH_TO_FLUTTER_GIT_DIRECTORY] is actual path of SDK.
- Run command to the terminal “source $Home/.bash_profile” to refresh the path.
- Then check whether our SDK is successfully installed or not.
- You are now ready to run the Flutter command in the Flutter console.
- If you find any issue during environment setup in macos, please go online Click here.