gpt4 book ai didi

android - flutter 错误sdkmanager错误!!! Windows 10

转载 作者:行者123 更新时间:2023-12-03 08:42:24 28 4
gpt4 key购买 nike

AndroidStudio已更新所有内容都已更新,我认为错误来自这里C:\ Users \ lanet \ AppData \ Local \ Android \ sdk \ tools \ bin \ sdkmanager,因为当我在那儿等待建议时,无法创建此文件夹。谢谢

C:\ Users \ lanet> flutter doctor -v
[√] Flutter( channel 稳定,v1.12.13 + hotfix.8,在Microsoft Windows [版本10.0.18363.592],语言环境tr-TR上)

• Flutter version 1.12.13+hotfix.8 at C:\src\flutter
• Framework revision 0b8abb4724 (3 weeks ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0

[!] Android工具链-为Android设备开发(Android SDK版本29.0.3)
• Android SDK at C:\Users\lanet\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.

[√] Android Studio(3.6版)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[√] VS代码(1.42.1版)
• VS Code at C:\Users\lanet\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.8.1

[!]已连接的设备
! No devices available

!医生发现2类问题。

C:\ Users \ lanet> flutter doctor --android-licenses

找不到Android sdkmanager工具(C:\ Users \ lanet \ AppData \ Local \ Android \ sdk \ tools \ bin \ sdkmanager)。

尝试重新安装或更新您的Android SDK,

有关详细说明,请访问 https://flutter.dev/setup/#android-setup

最佳答案

  • 仅从this link向下滚动并下载命令行工具。
  • 将下载的文件(工具)放在以下位置:

    C:\Users\ABC\AppData\ABC\Android\Sdk
  • 关闭您的android studio,然后再次打开android studio。并检查更新。
  • 打开命令行并通过:

    flutter doctor --android-licenses
  • 并按y接受。
  • 跑 flutter 医生你应该很好。
  • 关于android - flutter 错误sdkmanager错误!!! Windows 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60562505/

    28 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com