问题

F:\flutter\flutterWorkSpace\flutter_app_demo>flutter doctor

Doctor summary (to see all details, run flutter doctor -v):

[√] Flutter (Channel stable, 2.5.0, on Microsoft Windows [Version 10.0.18363.1556], locale zh-CN)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)

X cmdline-tools component is missing

r --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 https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web

[√] Android Studio (version 4.1)

[√] IntelliJ IDEA Ultimate Edition (version 2018.3)

[√] Connected device (2 available)

! Doctor found issues in 1 category.

解决方法:

  1. 打开Android studio 选择tools–>SDK Manager
  2. 选择 左侧的Android SDK->SDK Tools ->Android SDK Command-line Tools(latet);下载最新的

 


        朋友们我们本篇的内容到这就结束了,本篇的内容还是非常简单的,如果有啥不会的朋友咱们可以一起谈论哈~

        如果朋友你感觉文章的内容对你有帮助,可以点赞关注文章和专栏以及关注我哈,嘿嘿嘿我会定期更新文章的,感谢朋友们的支持!

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐