In a recent project, I created a Gradle project in windows, but when I load the project in Ubuntu and Mac OSX, an error “SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable”
I then followed the instruction, and in the ~/.bashrc file, I added the environment variable ANDROID_HOME