tauri-apps/tauri · error · tauri_cli::error::Error
Skipping Android Studio NDK installation. Please go through
Error message
Skipping Android Studio NDK installation. Please go through the manual setup process described in the documentation: https://tauri.app/start/prerequisites/#android
What it means
After cmdline-tools are available for NDK setup, the CLI asks permission to run sdkmanager to install ndk;{NDK_VERSION}. This error means that prompt was declined (explicit 'n', or the non-TTY default No), so NDK installation is skipped and setup aborts.
Source
Thrown at crates/tauri-cli/src/mobile/android/mod.rs:655
)
.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(&android_home)?;
}
if !granted_permission_to_install {
granted_permission_to_install = crate::helpers::prompts::confirm(
"Do you want to install the Android NDK using the command line tools?",
Some(false),
)
.unwrap_or_default();
if !granted_permission_to_install {
crate::error::bail!("Skipping Android Studio NDK installation. Please go through the manual setup process described in the documentation: https://tauri.app/start/prerequisites/#android");
}
}
log::info!(
"Running sdkmanager to install ndk-{NDK_VERSION} on {}...",
android_home.display()
);
let status = Command::new(&sdk_manager_path)
.arg(format!("--sdk_root={}", android_home.display()))
.arg("--install")
.arg(format!("ndk;{NDK_VERSION}"))
.status()
.map_err(|error| Error::CommandFailed {
command: format!(
"{} --sdk_root={} --install ndk;{NDK_VERSION}",
sdk_manager_path.display(),
android_home.display()
),View on GitHub (pinned to 52e4b6e71d)
Solutions
- Rerun and answer 'y' to the NDK install prompt
- Pre-install the NDK yourself: `sdkmanager --install "ndk;27.0.0"` then set NDK_HOME, making the prompt unnecessary
- Install the NDK via Android Studio SDK Manager
Example fix
# before ? Do you want to install the Android NDK using the command line tools? No error: Skipping Android Studio NDK installation... # after sdkmanager --install "ndk;27.0.0" export NDK_HOME="$ANDROID_HOME/ndk/27.0.0" tauri android dev
Defensive patterns
Strategy: fallback
Validate before calling
ls "$ANDROID_HOME/ndk" 2>/dev/null | grep -q . || \ sdkmanager --install "ndk;27.0.0" # preinstall so the NDK prompt never shows
Prevention
- Preinstall the NDK via sdkmanager or Android Studio before first tauri run
- Pin the NDK version in a setup script so CI is deterministic
- Cache $ANDROID_HOME so NDK setup happens once
When it happens
Trigger: `tauri android` NDK setup with the 'Do you want to install the Android NDK using the command line tools?' prompt answered No.
Common situations: Users who install the NDK through Android Studio or a pinned CI step; proxy-restricted environments where sdkmanager downloads are handled separately.
Related errors
- Skipping Android Studio SDK installation. Please go through
- Skipping Android Studio command line tools installation. Ple
- Android NDK invalid. Make sure the NDK_HOME environment vari
- Android NDK not found. Make sure the NDK is installed and th
- Failed to install Android NDK
AI-assisted analysis of tauri-apps/tauri@52e4b6e71d (2026-08-20).
Data as JSON: /api/errors/7b7bc1d98dcce82a.
Report an issue: GitHub.