在android studio中找不到SDK位置 [英] SDK Location not found in android studio

查看:97
本文介绍了在android studio中找不到SDK位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在 android studio 中导入了我的 eclipse 项目.我一直在说

I have just imported my eclipse project in android studio. it keeps my saying that

Error:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

我看过一些编辑 local.properties 文件的教程,但是没有用.这是我的 project.properties 文件:

I have seen some tutorials of editing local.properties files but it didnt work. here is my project.properties file:

sdk.dir=E:\\Mod Eclipse\\adt-bundle-windows-x86_64-20130219\\sdk

我的文件夹的实际目录是:

Actual directory of my folder is :

E:\Mod Eclipse\adt-bundle-windows-x86_64-20130219\sdk

推荐答案

您还应该在项目结构上更改它.

You should also change it on Project Structure.

  • 关闭当前项目,你会看到弹出的对话框,然后继续配置选项.

  • Close the current project and you'll see pop up with dialog which will then proceed to Configure option.

Configure -> Project Defaults -> Project Structure -> SDKs on left column -> Android SDK Home Path -> 像你在 local.properties 上所做的一样给出确切的路径,然后选择 Valid Target.

Configure -> Project Defaults -> Project Structure -> SDKs on left column -> Android SDK Home Path -> give the exact path as you did on local.properties and select Valid Target.

给你.

这篇关于在android studio中找不到SDK位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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