1
votes

I'm trying to clone this project iTracing App on my mac (Android Studio) but getting the error:

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

I've tried all the solution regarding changing dir path to sdk.dir = /Users/USER_NAME/Library/Android/sdk after creating file named local.properties in root path of the project folder.

1
Locate the SDK directory "sdk.dir=D\:\\AppData\\Local\\Android\\sdk1"kyorilys
I'm unable to reach to this path.Hussain Akram

1 Answers

4
votes

Put this in your .bash_profile (the file in your home directory /Users/USERNAME/.bash_profile)

export PATH="/Users/USERNAME/Library/Android/sdk/platform-tools":$PATH
export ANDROID_HOME="/Users/USERNAME/Library/Android/sdk"

and ANDROID_HOME environment variable will be accessible.

If it doesn't work - try to restart your system.