找不到 Android SDK [英] Unable to locate the Android SDK

查看:41
本文介绍了找不到 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-sdk26.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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆