SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID

将Eclipse里的Android导入Android Studio中,报出此错误:

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

StackOverFlow上有篇关于此问题的讨论:

http://stackoverflow.com/questions/19794200/gradle-android-and-the-android-home-sdk-location

 尝试将 local.properties文件中的sdk安装路径写对,如:



博主这里并没有错误,如果按照StackOverFlow上的依然不能解决,可以尝试:

local.properties 文件删除,找一个能在Android Studio正常运行的项目,将里面的local.properties文件复制一份到出现错误的项目中。

PS:Android Studio不是想用就能用啊!!

你可能感兴趣的:(SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID)