Mac 下出现Gradle sync failed: SDK location not found. Define location with sdk.dir in the local.properties
I checked that the environment variables and local.properties have already set the sdk path. Later, I googled and found that the Mac needs to be executed.
launchctl setenv ANDROID_HOME /Users/xxx/Documents/ProgramFiles/adt-eclipse/sdk
Then restart android studio and it's fine