FLUTTER DOCTOR [X] Android 工具链

时间:2021-06-12 08:44:56

标签: android flutter sdk

嗨,伙计们,我在向我展示这个之前在控制台“Flutter doctor”上输入时遇到了 android-SDK 问题:

[√] Flutter (Channel stable, 2.2.1, on Microsoft Windows [Version 10.0.18363.1500], 
locale pl-PL)
[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup 
for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
[√] Android Studio
[√] Connected device (1 available)

我检查了平台工具,我认为我拥有安装所需的一切

我的平台工具屏幕

enter image description here

enter image description here

我的 SDK 文件夹 enter image description here

2 个答案:

答案 0 :(得分:0)

尝试运行这个命令,它对我有用。我希望这对你也有用。

flutter doctor --android-licenses

答案 1 :(得分:0)

<块引用>

X 无法定位 Android SDK。

在“Windows 10中的环境变量”中添加Android SDK的位置

https://programsbuzz.com/article/how-set-android-environment-variable-path-windows-10

相关问题