SDK location not found - Android Gradle Plugin SDK path resolution during Android Studio Gradle sync
The Android Gradle Plugin resolves the Android SDK location for project sync through local.properties sdk.dir and the ANDROID_SDK_ROOT environment variable. Android Studio records the selected SDK path in local.properties when configured via Settings, while Gradle builds may rely on the environment variable when local.properties is absent. Uncertainty remain