-
Notifications
You must be signed in to change notification settings - Fork 65
Tutorial user script auto install flutter
Flutter channel stable
Script Auto install Flutter will help you automatically check and install Flutter.
OS: Mac
Dev Tools: git
-
Check and install the Java SDK 8 (Homebrew may be manually installed if your machine does not have JavaSDK available)
-
Check and install Android SDK
-
Check and install Flutter
tools/install_flutter.sh
- First, to use this script, the computer you are using must be MacOS (we are developing for Windows). Next machine you must have GIT. If GIT is not available, please follow the instructions to install GIT.
Install GIT
- Open a terminal and type
git --version
to test GIT on your computer. If not yet, the computer will display an error popup and ask if you want to install GIT or not. Click OK to continue the installation
Wait a moment to install GIT ....
- Start using the Script Auto Install Flutter. Open up terminal in the folder containing script file. Type the following command to run the script:
sh install_flutter.sh
-
Script will help you check and install the related dev tools before installing flutter.
-
Check the Java SDK, if your computer does not have Java SDK, it will display a popup notice and ask if you want to install. Click OK to turn off the popup. Because the operating system suggests the latest version of Java SDK, it is not suitable for flutter. We recommend that you only install Java SDK 8.
- Back to the terminal, press yes to continue. To install Java SDK 8 we use Hombrew to simplify the installation process. If your computer already has Homebrew, the script will automatically skip this step. Otherwise, it will automatically install HomeBrew, this process takes a little time, please wait ..
- Enter password computer to install homebrew
After homebrew installation, the script will automatically install Java SDK 8, Android SDK software and finally flutter. The process is fully automated, so your friend needs to wait a few minutes ..
After installation is completed, please turn off and reopen the terminal to run flutter.
Note:
-
Script will automatically create DevTool folder in home directory to save Android SDK and Flutter on your computer.
-
The script automatically saves the flutter path and android tool to bash_profile so you can call them conveniently in the terminal. If you need to edit them, please open the .bash_profile file in the Home directory (/Users/[user-name]) to correct it.