flutter doctor提示Android toolchain - develop for Android devices Unable to locate Android SDK.

flutter doctor提示Android toolchain - develop for Android devices Unable to locate Android SDK.

[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.

原因分析 这个错误表示找不到Android SDK。可能的原因是Android Studio没有安装或者安装路径没有正确配置。

解决办法

PS > flutter config --android-sdk D:\Android\SDK
Setting "android-sdk" value to "D:\Android\SDK".
You may need to restart any open editors for them to read new settings.


更多关于flutter doctor提示Android toolchain - develop for Android devices Unable to locate Android SDK.的实战教程也可以访问 https://www.itying.com/category-92-b0.html

回到顶部