当我在 cmd 中编写 flutter doctor 命令时出现此错误。
No valid Android SDK platforms found in G:\SdkManager\platforms. Candidates were:
- android-21
- android-27
- android-28
- android-8.0.0
最佳答案
当您没有安装任何 build-tools
包时,似乎会出现此消息。在撰写本文时,要安装所需的最低版本,您可以通过以下方式解决此问题:
sdkmanager "platform-tools" "platforms;android-30" "build-tools;30.0.3"
关于flutter - 没有有效的 Android SDK 平台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53986067/