0

I want to import the sample project from the github. I have downloaded the whole package into zip , extracted the zip , and there are several folders in it. The one I want to import is sample app .

Now when Ever I tried to import it I get the following error

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

I have searched many link on stackoverflow. But got nothing. Please help me.

Robert
  • 39,162
  • 17
  • 99
  • 152
stacy queen
  • 280
  • 1
  • 4
  • 19
  • You need to create an environment variable named ANDROID_HOME with your sdk path as value. Which OS are you using? – Héctor May 11 '15 at 09:35
  • using android studio or eclipse? – Vishwajit Palankar May 11 '15 at 09:37
  • I have android sdk in E drive , the path is as below : E:\AndroidStudio\SDK so for the variable name I have given, : ANDROID_HOME and for the path , i have copy pasted the path : E:\AndroidStudio\SDK – stacy queen May 11 '15 at 09:38
  • android studio for sure – stacy queen May 11 '15 at 09:39
  • Try to generate `local.properties` file with: `android update project -p .` in the root project directory. Then, add `sdk.dir=E:\AndroidStudio\SDK` to it. – Héctor May 11 '15 at 09:44
  • possible duplicate of [Where does local.properties go for android project?](http://stackoverflow.com/questions/20673378/where-does-local-properties-go-for-android-project) – Robert May 11 '15 at 09:48
  • I have checked its there the path is correct – stacy queen May 11 '15 at 09:58
  • set your ANDROID_HOME and PATH variables - http://stackoverflow.com/questions/26356359/error-android-home-is-not-set-and-android-command-not-in-your-path-you-must-ful – Phil H May 13 '15 at 07:26

0 Answers0