首页 > 代码库 > Eclipse导入Gradle时报错:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable

Eclipse导入Gradle时报错:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable

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

按照其中的讲解设置了ANDROID_HOME环境变量为E:\android\adt-bundle-windows-x86_64-20131030\sdk

重启了Eclipse后终于正常工作了!

Eclipse导入Gradle时报错:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable