Tip:
在 Android Studio官網(wǎng) 下載最新穩(wěn)定版本。官網(wǎng)更改了 Android Studio 的版本編號(hào)系統(tǒng),以與IntelliJ IDEA(Android Studio 所基于的 IDE )更加一致。
在之前的編號(hào)系統(tǒng)中,此版本的編號(hào)為 Android Studio 4.3 或版本4.3.0.1 。有了新的編號(hào)系統(tǒng),現(xiàn)在是Android Studio - Arctic Fox | 2020.3.1 或2020.3.1 版本。
New version numbering
Updated version numbering for Android Studio
We have changed the version numbering system for Android Studio to more closely align with IntelliJ IDEA, the IDE that Android Studio is based on.
In the previous numbering system, this release would have been numbered as Android Studio 4.3 or version 4.3.0.1. With the new numbering system, it is now Android Studio - Arctic Fox | 2020.3.1, or version 2020.3.1.

Going forward, here’s how the Android Studio version number is determined:
<Year of IntelliJ Version>.<IntelliJ major version>.<Studio major version>.<Studio minor/patch version>
- The first two number groups represent the version of the IntellIj platform that a particular Android Studio release is based on. For this release, it's version 2020.3.
- The third number group represents the Studio major version, starting at 1 and incrementing by one for every major release.
- The fourth number group represents the Studio minor/patch version, starting at 1 and incrementing by one for every minor release.
- We are also giving each major release a version name, incrementing from A to Z based on animal names. This release is named Arctic Fox.
Updated version numbering for Android Gradle plugin
We have changed the version numbering for Android Gradle plugin (AGP) to more closely match the underlying Gradle build tool. Therefore, AGP 7.0 is the next release after AGP 4.2.
For more details, see Versioning changes in the AGP release notes.
安裝Android Studio后,在終端Terminal或者iTerm輸入flutter doctor進(jìn)行檢查。
問(wèn)題:cmdline-tools component is missing

? ~ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel stable, 2.5.1, on macOS 11.4 20F71 darwin-x64, locale
zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
? cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
? Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for
more details.
[?] Xcode - develop for iOS and macOS
[?] Chrome - develop for the web
[?] Android Studio (version 2020.3)
[?] VS Code (version 1.60.2)
[?] Connected device (1 available)
! Doctor found issues in 1 category.
解決:
根據(jù)報(bào)錯(cuò)提示信息
? cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
? Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for
more details.
進(jìn)入Android Studio添加SDK Tool對(duì)應(yīng)所缺工具。可以去Android Studio找到Preferences -> Android SDK 找到SDK Tool或者在



勾選Android SDK Command-line Tools(latest)點(diǎn)擊一路OK下載完畢即可。
再次在終端Terminal或者iTerm輸入flutter doctor進(jìn)行檢查。

即ok