gpt4 book ai didi

android - Flutter 找不到预装的 Android SDK

转载 作者:IT王子 更新时间:2023-10-29 06:45:35 25 4
gpt4 key购买 nike

C:\Users\joy bank> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.1.8, on Microsoft Windows [Version 10.0.16299.251],
[X] Android toolchain - develop for Android devices
      x Unable to locate Android SDK.
          Install Android Studio from: https://developer.android.com/studio/index.htm
          On first launch it will assist you in installing the Android SDK components
          (or visit https://flutterdo/setuprnandroid-setup for detailed instructions
          If Android SDK has been installed to a custom location, set ANDROID_HOME to
          You may also want to add it to your PATH environment variable.

[!] Android Studio (not installed)
[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

C:\Users\joy bank>flutter

C:\Users\joy bank>

截图:http://www5.0zz0.com/2019/02/04/04/122309022.jpeg

如上图所示:

  • 安装好flutter sdk,并设置环境变量后
  • 运行 flutter doctor,一开始它是有效的
  • 但过了一会儿它就不再工作了,我无法使用任何 flutter 命令

我尝试了很多不同版本的 sdk 并重新安装了我的操作系统“windows 10”。

请问这里有什么问题吗?

最佳答案

根据您的错误,我可以看到未安装 Android SDK。重新安装 Android SDK,并确保更新路径变量。

关于android - Flutter 找不到预装的 Android SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54509274/

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