未找到 Android SDK - Android Studio - 缺少 SDK [英] No Android SDK found - Android Studio - Missing SDK
问题描述
我是安卓开发的初学者.我已经安装了 Android Studio,但是当我启动 Android Studio 时,它每次都显示未找到 Android SDK"屏幕.
I am a beginner in android development. I have installed Android Studio but when I start Android Studio it shows "No Android SDK found" screen every time.
如果我在安装过程中遗漏了什么,请指导我.
Please guide me if I miss anything during installation.
谢谢
推荐答案
首先,像其他人一样查看评论中的 SDK 路径,通过:文件 -> 项目结构 -> SDK 位置
First of all, check the SDK path like others state in comments, by going to: File -> Project Structure -> SDK location
如果您的路径正确,请检查您下载的 SDK 版本是否与您在项目中使用的版本匹配,您可以在您的应用程序 gradle 文件中找到它:
If your path is correct, check if your downloaded SDK version matches what you are using in project, you can find it in your app gradle file:
android {
compileSdkVersion 26
targetSdkVersion 26.0.2
}
希望有帮助!
这篇关于未找到 Android SDK - Android Studio - 缺少 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!