简体   繁体   English

我收到此错误“缺少 cmdline 工具组件”我已经安装了 flutter 和 android studio,如何解决它们,或者必须做什么?

[英]I am getting this errors “cmdline tools component is missing” I have installed flutter and android studio, how to solve them, or what has to be done?

[here is the Doctor Summary][1] [这里是医生总结][1]

cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest" [1]: https://i.stack.imgur.com/cqbIw.png缺少 cmdline-tools 组件运行 `path/to/sdkmanager --install "cmdline-tools;latest" [1]: https://i.stack.imgur.com/cqbIw.png

Check the the Sdk folder besides the Android Studio folder: it should have a cmdline-tools folder inside.检查 Android Studio 文件夹之外的 Sdk 文件夹:里面应该有一个 cmdline-tools 文件夹。 If not install it by: Open your android studio> tools> system settings> android sdk> select android sdk command line tools, ..build tools, ..sdk platform tools, ..sdk tools > Click OK.如果不是通过以下方式安装:打开你的 android studio> 工具> 系统设置> android sdk> 选择 android sdk 命令行工具、..build 工具、..sdk 平台工具、..sdk 工具> 单击确定。 Also take a note of the sdk installation location given on top.还要记下上面给出的 sdk 安装位置。 You might need it further.您可能还需要它。

Next, Have you added the following environment variables : ANDROID_HOME, ANDROID_SDK_ROOT, JAVA_HOME correctly?接下来,您是否正确添加了以下环境变量:ANDROID_HOME、ANDROID_SDK_ROOT、JAVA_HOME?

Next, add the location of the platform tools folder to environment variable PATH .接下来,将平台工具文件夹的位置添加到环境变量PATH

The platform tools folder is installed along with android studio, in the Sdk folder besides Android Studio folder.平台工具文件夹与 android studio 一起安装,在 Android Studio 文件夹之外的 Sdk 文件夹中。 ("C:\\Android\\Sdk\\platform-tools") ("C:\\Android\\Sdk\\平台工具")

Finally, run flutter doctor --android-licenses to accept the license conditions.最后,运行 flutter doctor --android-licenses 接受许可条件。

Please post the result of flutter doctor -v from a command prompt if you need further help.如果您需要进一步的帮助,请从命令提示符发布flutter doctor -v的结果。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装 Flutter 和 Android Studio 后出现错误“cmdline-tools 组件丢失”...我添加了 Android SDK。如何解决这些问题? - I am getting error "cmdline-tools component is missing" after installing Flutter and Android Studio... I added the Android SDK. How can I solve them? flutter 医生 - 如何解决 Android sdkmanager cmdline-tools 组件丢失? - flutter doctor - How to resolve Android sdkmanager cmdline-tools component is missing? Flutter 医生:缺少 cmdline-tools 组件 - Flutter doctor: cmdline-tools component is missing Flutter - 缺少 cmdline-tools 组件 - Flutter - cmdline-tools component is missing Flutter 医生结果显示“缺少 cmdline-tools 组件” - Flutter doctor results with "cmdline-tools component is missing" 在Android Studio中遇到无法解决的错误 - Getting errors in Android Studio that I can't solve 在Android Studio中,Java.text.DateFormat出现错误 - In Android Studio I am getting errors with Java.text.DateFormat 为什么我在android studio中的代码中出现错误? - Why am i getting errors in my code in android studio? 我没有在 BuildConfig 中获取 FLAVOR 字符串,它在 Android Studio 的 BuildConfig 中丢失 - I am not getting FLAVOR string in BuildConfig , it is Missing in BuildConfig in Android Studio 我在使用 android studio 构建我的第一个 flutter 应用程序时遇到问题,几乎没有错误有人可以帮助我吗? - I am having issue building my first flutter app with android studio getting few errors can someone help me?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM