tauri-apps/tauri · error

Skipping Android Studio SDK installation. Please go through

Error message

Skipping Android Studio SDK installation. Please go through the manual setup process described in the documentation: https://tauri.app/start/prerequisites/#android

What it means

After the SDK's command line tools are present, the CLI asks a second permission: to run sdkmanager to install platform-tools, platforms;android-{SDK_VERSION} and ndk;{NDK_VERSION}. Declining that prompt (answer No, or non-TTY default No) aborts SDK setup with a link to the manual documentation.

Source

Thrown at crates/tauri-cli/src/mobile/android/mod.rs:564

        )
        .unwrap_or_default();

        if !granted_permission_to_install {
          crate::error::bail!("Skipping Android Studio command line tools installation. Please go through the manual setup process described in the documentation: https://tauri.app/start/prerequisites/#android");
        }

        download_cmdline_tools(&extract_path)?;
      }

      if !granted_permission_to_install {
        granted_permission_to_install = crate::helpers::prompts::confirm(
          "Do you want to install the Android SDK using the command line tools?",
          Some(false),
        )
        .unwrap_or_default();

        if !granted_permission_to_install {
          crate::error::bail!("Skipping Android Studio SDK installation. Please go through the manual setup process described in the documentation: https://tauri.app/start/prerequisites/#android");
        }
      }

      log::info!("Running sdkmanager to install platform-tools, android-{SDK_VERSION} and ndk-{NDK_VERSION} on {}...", default_android_home.display());
      let status = Command::new(&sdk_manager_path)
        .arg(format!("--sdk_root={}", default_android_home.display()))
        .arg("--install")
        .arg("platform-tools")
        .arg(format!("platforms;android-{SDK_VERSION}"))
        .arg(format!("ndk;{NDK_VERSION}"))
        .status()
        .map_err(|error| Error::CommandFailed {
          command: format!("{} --sdk_root={} --install platform-tools platforms;android-{SDK_VERSION} ndk;{NDK_VERSION}", sdk_manager_path.display(), default_android_home.display()),
          error,
        })?;

      if !status.success() {
        crate::error::bail!("Failed to install Android SDK");

View on GitHub (pinned to 52e4b6e71d)

Solutions

  1. Rerun and answer 'y' to the 'install the Android SDK using the command line tools' prompt
  2. Pre-install the required packages manually: `sdkmanager --sdk_root=$ANDROID_HOME --install "platform-tools" "platforms;android-34" "ndk;27.0.0"` (matching the SDK/NDK versions Tauri requires) then rerun
  3. Install the packages through Android Studio's SDK Manager GUI

Example fix

# before
? Do you want to install the Android SDK using the command line tools? No
error: Skipping Android Studio SDK installation...
# after
$ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_HOME \
  --install "platform-tools" "platforms;android-34" "ndk;27.0.0"
tauri android dev
Defensive patterns

Strategy: fallback

Validate before calling

# ensure required SDK packages exist so the install prompt is never shown:
sdkmanager --list_installed | grep -q 'platform-tools' || \
  sdkmanager --install "platform-tools" "platforms;android-34" "ndk;27.0.0"

Prevention

When it happens

Trigger: `tauri android init`/`dev` where cmdline-tools exist (or were just installed) and the user answers 'n' to 'Do you want to install the Android SDK using the command line tools?'

Common situations: Users behind corporate proxies who want to install SDK packages through approved channels; CI where the prompt defaults to No; users who prefer installing packages via Android Studio's SDK Manager.

Related errors


AI-assisted analysis of tauri-apps/tauri@52e4b6e71d (2026-08-20). Data as JSON: /api/errors/4e593f6de40a4e6e. Report an issue: GitHub.