报错信息如下:
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
X cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See Windows install | Flutter for more details.
解决方法:
设置下SDK tools的路径
使用如下命令设置自己的Android tools的路径
flutter config --android-sdk "D:\Android\Sdk"
结果如下文章来源:https://www.toymoban.com/news/detail-631311.html
文章来源地址https://www.toymoban.com/news/detail-631311.html
到了这里,关于Flutter AndroidStudio 开发环境报错cmdline-tools component is missing的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!