本文介绍了我收到此错误“缺少 cmdline-tools 组件"安装flutter和android studio后……我添加了andorid sdk.如何解决它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android 工具链 - 为 Android 设备开发(Android SDK 版本 30.0.3)X cmdline-tools 组件丢失运行 path/to/sdkmanager --install "cmdline-tools;latest"请参阅 https://developer.android.com/studio/command-line 了解更多详情.

Android toolchain - develop for Android devices (Android SDK version 30.0.3)X cmdline-tools component is missingRun path/to/sdkmanager --install "cmdline-tools;latest"See https://developer.android.com/studio/command-line for more details.

推荐答案

如果你是mac用户,直接打开终端粘贴

If you are a mac user, Just open your terminal and paste

cd Library/Android/sdk/tools/bin./sdkmanager --install "cmdline-tools;latest"

cd Library/Android/sdk/tools/bin./sdkmanager --install "cmdline-tools;latest"

然后按 Enter.

此命令将安装最新版本的 cmdline-tools.

This command will install latest version of cmdline-tools.

然后,运行 Flutter doctor,错误就会消失.

Then, Run Flutter doctor, The error will be gone.

这篇关于我收到此错误“缺少 cmdline-tools 组件"安装flutter和android studio后……我添加了andorid sdk.如何解决它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 11:13