Unable to locate the Android SDK(找不到 Android SDK)
问题描述
我已经安装了
我没有安装 Android SDK.
您可以使用为您的项目配置 Android SDK
flutter 配置 --android-sdk/path/to/android/sdk
PATH
变量也应该包含 SDK,比如
export PATH=$PATH:/usr/local/opt/android-sdk/emulator:/usr/local/opt/android-sdk/build-tools/26.0.1:/usr/local/opt/android-sdk/platform-tools:/usr/local/opt/android-sdk/tools
/usr/local/opt/android-sdk
和 26.0.1
可能与您的系统不匹配.这只是一个例子.
I already had Android Studio and the Android SDK installed. I later added Flutter and the Flutter SDK. Here is my problem: When I run
flutter doctor
It shows,
that I do not have the Android SDK installed.
You can configure the Android SDK for your project using
flutter config --android-sdk /path/to/android/sdk
The PATH
variable also should contain the SDK, like
export PATH=$PATH:/usr/local/opt/android-sdk/emulator:/usr/local/opt/android-sdk/build-tools/26.0.1:/usr/local/opt/android-sdk/platform-tools:/usr/local/opt/android-sdk/tools
/usr/local/opt/android-sdk
and 26.0.1
might not match your system. That's just an example.
这篇关于找不到 Android SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!