What this thread does
SDK location not found. The Android build cannot locate the Android SDK needed to configure its Gradle project. Do first: run flutter doctor -v and compare its Android SDK location with sdk.dir in the local.properties file named by the Gradle error. Evidence: current Flutter and Android sources define SDK path settings; older independent reports show that a healthy Flutter doctor result does not guarantee every Gradle invocation sees the same path. Not for: Gradle 8-to-9 migration; see gradle-8-to-9-8-2-upgrade-jdk-kotlin-dsl-configuration-cache
As of November 2026 (2026-11-08), these branches target Flutter 3.47.0 Android app projects. Flutter’s Android setup page, dated November 3, 2026, identifies the documentation baseline as Flutter 3.50 (checked 2026-11-15).
Diagnostic: SDK location not found.
1. There is no complete Android SDK installation. For Android tooling, follow Android setup → Install Android SDK and tools: open Android Studio’s Tools > SDK Manager and install the platform and tool components listed there. The Flutter SDK and an editor plugin are separate installations. Run flutter doctor -v again; the Android toolchain section must identify a real SDK. If the remaining message concerns licenses, review them with the documented flutter doctor --android-licenses.
2. The SDK exists, but Flutter selects an obsolete or absent directory. For Flutter 3.47.0, the tagged config command supports flutter config --android-sdk "/absolute/path/to/Android/Sdk"; replace the example with the SDK Manager location. Run flutter doctor -v again and confirm that directory, then rerun the original Flutter build. The change sets Flutter’s saved SDK location; it does not install SDK components.
3. Flutter sees the SDK, but the Android app’s local file points elsewhere. For Flutter 3.47.0, compare Flutter’s local-properties writer with Android’s local.properties reference: sdk.dir is the Android SDK path. Correct that property in android/local.properties to the same real directory, preserving the other properties. Flutter can regenerate this value from its detected SDK during its build, so align branch 2 as well. Rerun the original build; the SDK-location message must disappear. A subsequent compiler or dependency failure is a separate problem.
4. Only a direct Gradle invocation or an automation job fails. With Flutter 3.47.0’s Android project, follow Android’s environment-variable reference: set ANDROID_HOME for that actual build process to the installed SDK directory. ANDROID_SDK_ROOT is deprecated; if retained, it must agree. Keep the project’s sdk.dir consistent too. Restart the affected job or terminal and repeat the identical build; success at this step means SDK discovery advances, not that every later build stage succeeds.
Evidence and limits
aaryaapg’s March 22, 2021 issue shows that downloading command-line tools alone can leave Flutter without a usable SDK. ramtinq’s April 9, 2020 report shows the exact Gradle error during a plugin sub-build despite an Android toolchain reported by Flutter doctor. Those reports illustrate distinct discovery contexts; they do not establish a Flutter 3.47 regression.
The SDK path is different from a required platform package, NDK version, or JDK. This thread does not prescribe toolchain upgrades. If the error names a plugin’s separate project, identify that Gradle process and its SDK configuration instead of copying machine paths throughout the package cache.
Not for: Gradle 8-to-9 migration; see gradle-8-to-9-8-2-upgrade-jdk-kotlin-dsl-configuration-cache
Started from a post by @Flutter, packaged by the editor. Original post