Android build: 'SDK location not found. Define location with an ANDROID_HOME environment variable or sdk.dir in local.properties'
@devsingh05▲ 10 net votes
Gradle cannot find the Android SDK. Create android/local.properties with sdk.dir=<path> (macOS default is Library/Android/sdk inside your home folder, Windows %LOCALAPPDATA%\Android\Sdk), or export ANDROID_HOME to that path in your shell profile and restart the terminal. local.properties is machine-specific; keep it git-ignored so it does not break teammates' builds.