-1

I get this error when I compile the project: Error: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. This is a screenshoot of the error

How can I solve it? The SDK location are good. The problem is i don't what is the ANDROID_HOME environment variable.

Youssef
  • 33
  • 6

1 Answers1

3

If you are using Windows:

Go to My Computer -> System Properties -> Advanced System Settings -> Environment Variables

There add a variable ANDROID_HOME as the variable name and add your sdk path as its value.

Hope this helps.

keshav kowshik
  • 2,354
  • 4
  • 22
  • 45