This is the third day of my participation in Gwen challengeMore article challenges
preface
Flutter is a cross-platform, high-fidelity, high-performance mobile application development framework launched by Google and open source. Dart allows developers to develop apps, a set of code that runs on both iOS and Android. Self-drawing UI+ native, through different platforms to achieve a unified interface rendering engine to draw UI, and does not rely on system native controls, so you can achieve the consistency of different platform UI.
Building a FLUTTER environment requires three steps:
- Install git. (You can skip this step and use CMD instead of git.)
- Download the Flutter SDK.
- Install Android Studio.
git
Select the one in the red box. 32-bit or 64-bit depends on the system.
Download link
flutter
- Download the latest available flutter installation package from the Flutter SDK website
- Unzip the install package to the path where you want to install the Flutter SDK. (D:/flutter;)
- Using a mirror
Since access to Flutter may sometimes be restricted in China, Flutter officials have created a temporary mirror for Chinese developers who can add the following environment variables to their user environment variables:
export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
- Updating environment variables
Go to Control Panel > User Accounts > User Accounts > Change My Environment Variables and create a new full path to flutter\bin in path. Restart Windows to apply this change
Enter flutter in GIT. When Manage your flutter app development appears, the Flutter SDK has been successfully installed.
Enter flutter doctor; Android Studio is not installed locally if it is not checked.
Android Studio
- The Android Studio installer can be downloaded from the Chinese community
- After installing Android Studio, open Android Studio and File -> Setting -> Plugins. Click Install to download, and after downloading, restart Android Studio.
3. Check whether the SDK is configured successfully. Open Android Studio and go to File -> Setting -> Apperance & Behavior -> System Settings -> Android SDK.
4. Check whether the Flutter SDK has been configured successfully. Open Android Studio, File -> Setting -> Languages & Frameworks -> Flutter.
5. Check whether the Dart SDK is configured successfully. Open Android Studio, File -> Setting -> Languages & Frameworks -> Dart.
6. Configure environment variables
- flutter doctor
After all the above operations have been completed, enter Flutter Doctor and check all the boxes to indicate that the installation is complete.