[✓] Flutter (Channel master, 2.13.0-0.0.pre.1009, on macOS 12.3.1 21E258 darwin-x64, locale zh-Hans-CN) [!] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc1) ✗ 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 (Xcode 13.3.1) ✗ CocoaPods installed but not working. You appear to have CocoaPods installed but it is not working. This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it. This can usually be fixed by re-installing CocoaPods. To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] IntelliJ IDEA Ultimate Edition (version 2022.1) [✓] IntelliJ IDEA Ultimate Edition (version 2022.1) [✓] VS Code (version 1.66.2) [✓] VS Code (version 1.62.0-insider) [✓] Connected device (2 available) [✓] HTTP Host Availability
Flutter requires Android SDK 28 and the Android BuildTools 28.0.3 To update using sdkmanager, run: "/path/to/android-sdk/tools/bin/sdkmanager" "platforms;android-28" "build-tools;28.0.3"
1 2 3
$ /path/to/android-sdk/tools/bin/sdkmanager "platforms;android-28""build-tools;28.0.3" Warning: File /Users/duoli/.android/repositories.cfg could not be loaded. [=======================================] 100% Unzipping... android-9/zipalign