Reputation:
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.
Upvotes: 4
Views: 8104
Reputation: 96
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.
Upvotes: 8