[英]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.