tauri-apps/tauri · error

Skipping Android Studio command line tools installation…

Error message

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

What it means

While setting up the Android SDK, if `cmdline-tools/bin/sdkmanager` is missing, the CLI interactively asks permission to download the Android Studio command line tools. This error means the prompt was declined (default answer is No, and a non-TTY stdin makes unwrap_or_default() return false), so setup aborts and points you to the manual prerequisite documentation.

Solutions

  1. Rerun the command and answer 'y' to 'Do you want to install the Android Studio command line tools...?'
  2. Manually install cmdline-tools: download the zip from developer.android.com, unzip to $ANDROID_HOME/cmdline-tools/latest, then rerun
  3. Install cmdline-tools via Android Studio > SDK Manager > SDK Tools > 'Android SDK Command-line Tools'
  4. Set ANDROID_HOME to an SDK that already contains cmdline-tools/bin/sdkmanager

Example fix

# before
$ tauri android dev
? Do you want to install the Android Studio command line tools...? No
error: Skipping Android Studio command line tools installation...
# after
$ tauri android dev
? Do you want to install the Android Studio command line tools...? Yes
# or manual: place sdkmanager at $ANDROID_HOME/cmdline-tools/bin/sdkmanager
Defensive patterns

Strategy: fallback

Validate before calling

# skip the prompt entirely by pre-providing the tool:
test -x "$ANDROID_HOME/cmdline-tools/bin/sdkmanager" || \
  echo 'cmdline-tools missing - tauri will prompt; install them first'

Prevention

When it happens

Trigger: `tauri android init`/`dev`/`build` on a machine whose SDK lacks cmdline-tools, with the confirm prompt answered 'n' — or run in a context without a TTY where the prompt defaults to No.

Common situations: Developers who want to control toolchain installs manually; CI pipelines that accidentally reach the interactive branch; SDKs installed only through Android Studio's GUI (which does not always place cmdline-tools).

Related errors


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

Appendix: source

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

      } else {
        std::env::current_dir().context("failed to get current directory")?
      };

      let sdk_manager_path = extract_path
        .join("cmdline-tools/bin/sdkmanager")
        .with_extension(if cfg!(windows) { "bat" } else { "" });

      let mut granted_permission_to_install = false;

      if !sdk_manager_path.exists() {
        granted_permission_to_install = crate::helpers::prompts::confirm(
          "Do you want to install the Android Studio command line tools to setup the Android SDK?",
          Some(false),
        )
        .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());

View on GitHub (pinned to 52e4b6e71d)