安装完androidsdk和android studio后,打开控制台,出现错误
解决办法
找到自己安装android sdk的位置,然后安装上,并将下面的勾选上
文章来源:https://www.toymoban.com/news/detail-705365.html
再次运行 flutter doctor 不报错,出现以下画面文章来源地址https://www.toymoban.com/news/detail-705365.html
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.18363.1916], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1)
[√] VS Code
[√] VS Code, 64-bit edition (version 1.62.0)
[√] Connected device (2 available)
• No issues found!
到了这里,关于flutter报错-cmdline-tools component is missing的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!