[英]Flutter doctor --> Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
I have a question so I think I dowlnloaded everything correctly but I still get this massage when I type in "flutter dictir" in cmd.我有一个问题,所以我认为我正确下载了所有内容,但是当我在 cmd 中输入“flutter dictir”时,我仍然会得到这个按摩。 When I run "path/to/sdkmanager --install "cmdline-tools;latest" as recommended nothing happens. So could you help me to download it anyways?当我按照建议运行“path/to/sdkmanager --install”cmdline-tools;latest”时,什么也没有发生。所以你能帮我下载它吗?
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) X cmdline-tools component is missing Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details. [!] Android 工具链 - 为 Android 设备开发(Android SDK 版本 32.1.0-rc1) X cmdline-tools 组件丢失 运行path/to/sdkmanager --install "cmdline-tools;latest"
请参阅https://developer。 android.com/studio/command-line了解更多详情。 X Android license status unknown. X Android 许可证状态未知。 Run flutter doctor --android-licenses
to accept the SDK licenses.运行flutter doctor --android-licenses
以接受 SDK 许可证。 See https://flutter.dev/docs/get-started/install/windows#android-setup for more有关更多信息,请参阅https://flutter.dev/docs/get-started/install/windows#android-setup
! ! Doctor found issues in 1 category.医生发现 1 类问题。
Open android studio then go to settings then SDK manager.打开 android studio 然后去设置然后 SDK 管理器。 Check the command line tools if it's not checked (most times it's not), then finish and let it download that plugin如果未选中,请检查命令行工具(大多数情况下未选中),然后完成并让它下载该插件
Check the Android SDK path.检查 Android SDK 路径。
Go to where flutter is installed flutter config --android-sdk android_sdk_path execute the command.转到安装flutter的地方flutter config --android-sdk android_sdk_path执行命令。
ex) flutter config --android-sdk C:\tools\AndroidSDK例如)颤振配置--android-sdk C:\tools\AndroidSDK
flutter config --android-sdk <path where you saved Android studio SDK>
for eg in my case it was flutter config --android-sdk D:\AS_SDK
(basically navigate SDK to the custom location).运行这个flutter config --android-sdk <path where you saved Android studio SDK>
例如在我的例子中它是flutter config --android-sdk D:\AS_SDK
(基本上将SDK导航到自定义位置)。flutter doctor --android-licenses
and for every question it asks while confirming the licenses say " y ".现在您已将 Android SDK 导航到正确的位置并安装了最新的命令行工具,运行这个flutter doctor --android-licenses
并在确认许可证时对它提出的每个问题说“ y ”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.