简体   繁体   English

Flutter Doctor --> Android toolchain - 为Android设备开发(Android SDK版本32.1.0-rc1)

[英]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”时,什么也没有发生。所以你能帮我下载它吗?

thecode编码

[!] 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 And​​roid 许可证状态未知。 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

  1. Run this 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导航到自定义位置)。
  2. Go to Android Studio, on the first page where you start a project, find the option to look for more settings, there you go to SDK manager and then select and install "Android SDK Command-line Tools (latest)" (size at the time of writing this is 108.9mb).转到 Android Studio,在您启动项目的第一页上,找到查找更多设置的选项,然后转到 SDK 管理器,然后选择并安装“Android SDK 命令行工具(最新)”(大小为写这篇文章的时间是 108.9mb)。
  3. Now that you have the Android SDK navigated to the correct location and the latest command-line tools installed, run this 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.

相关问题 Flutter 医生许可证状态问题 Android 工具链 - 为 Android 设备开发(Android ZF20E3C5E54C0AB03D37AZ5D6203B 版本)。 - Flutter Doctor licence status issue Android toolchain - develop for Android devices (Android SDK version 32.0.0) Android 工具链 - 为 Android 设备和 android ZF20E3C5E54C0AB3D375D660B3F896F6 开发 - Android toolchain - develop for Android devices and android SDK not found FLUTTER DOCTOR [X] 安卓工具链 - FLUTTER DOCTOR [X] Android toolchain 在“flutter doctor”中显示有关 Android 工具链的错误 - Showing error in the "flutter doctor" about Android toolchain Flutter Doctor 找不到 Android SDK - Flutter Doctor can't find Android SDK 无法定位 android SDK for flutter 医生 - Unable to locate android SDK for flutter doctor 任何人都可以用 android 工具链和 android 工作室解决 flutter 医生问题的这些问题吗? - Can anyone fix these issues with flutter doctor issues with android toolchain and android studio? Flutter Doctor 无法识别我的 ANDROID_SDK 环境变量 - Flutter Doctor not recognizing my ANDROID_SDK environment variables Android sdk 文件在运行 flutter 博士后未找到 - Android sdk file not found after running flutter doctor Android Sdk manager not found- Flutter doctor error - Android Sdk manager not found- Flutter doctor error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM