Home » Android » Android Studio Path (ANDROID-HOME) not able to set?

Android Studio Path (ANDROID-HOME) not able to set?

Posted by: admin June 15, 2020 Leave a comment


I am facing the below problem while importing the downloaded project into Andoroid Stuio.
Please help me.


Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.7-bin.zip'.
Build file '/Users/Rajesh.K/Desktop/Test/Project/build.gradle' line: 9
A problem occurred evaluating project ':Project'.
A problem occurred evaluating project ':Project'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Consult IDE log for more details (Help | Show Log)


Please help me to come out of this isssue. I am facing this issue in the Android Studio Mac version.

How to&Answers:

Are you trying to imort studio project into Android studio or eclipse project into Android studio.?

Try to set up your ANDROID_HOME as studio asking you. ( export ANDROID_HOME="PATh to your SDK folder" ) and run studio form this console.

Or you can try to configure in within Android Studio (File->Project Structure->Android SDK) And then you should set the proper SDK path.


I faced something similar but the difference was I had already set the variable into Android Studio and even with that, it was not recognized.

What I did was a simple File -> Invalidade Cache and Restart -> Invalidade and Restart.

I did not go deeper to check if it is a known issue on Android Studio.