Download SDK from the official website

Download the SDK from the official website and unzip it to where you want to store it

Configuring environment Variables

1. Run commands

open ~/.bash_profile
Copy the code

2. Add the configuration

export PATH=path:$PATH
Copy the code

Path is the directory where the bin file is stored after decompression

3. Update operations

source .bash_profile
Copy the code

4. Run flutter -h to check whether the welcome screen is displayed

5. Execute flutter Doctor to diagnose the error

Modify the error

Follow the instructions in the figure above to execute the commands described in bold to resolve the error

I have a problem

The Mac terminal command line does not run commands. The command Not found is always displayed

Android Studio is now installed. The missing files shown above are installed, but there is no option to create a Flutter project on the welcome screen. This issue needs to be resolved.