{"record":{"id":"4e593f6de40a4e6e","repo":"tauri-apps/tauri","slug":"skipping-android-studio-sdk-installation-please-g","errorCode":null,"errorMessage":"Skipping Android Studio SDK installation. Please go through the manual setup process described in the documentation: https://tauri.app/start/prerequisites/#android","messagePattern":"Skipping Android Studio SDK installation\\. Please go through the manual setup process described in the documentation: https://tauri\\.app/start/prerequisites/#android","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tauri-cli/src/mobile/android/mod.rs","lineNumber":564,"sourceCode":"        )\n        .unwrap_or_default();\n\n        if !granted_permission_to_install {\n          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\");\n        }\n\n        download_cmdline_tools(&extract_path)?;\n      }\n\n      if !granted_permission_to_install {\n        granted_permission_to_install = crate::helpers::prompts::confirm(\n          \"Do you want to install the Android SDK using the command line tools?\",\n          Some(false),\n        )\n        .unwrap_or_default();\n\n        if !granted_permission_to_install {\n          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\");\n        }\n      }\n\n      log::info!(\"Running sdkmanager to install platform-tools, android-{SDK_VERSION} and ndk-{NDK_VERSION} on {}...\", default_android_home.display());\n      let status = Command::new(&sdk_manager_path)\n        .arg(format!(\"--sdk_root={}\", default_android_home.display()))\n        .arg(\"--install\")\n        .arg(\"platform-tools\")\n        .arg(format!(\"platforms;android-{SDK_VERSION}\"))\n        .arg(format!(\"ndk;{NDK_VERSION}\"))\n        .status()\n        .map_err(|error| Error::CommandFailed {\n          command: format!(\"{} --sdk_root={} --install platform-tools platforms;android-{SDK_VERSION} ndk;{NDK_VERSION}\", sdk_manager_path.display(), default_android_home.display()),\n          error,\n        })?;\n\n      if !status.success() {\n        crate::error::bail!(\"Failed to install Android SDK\");","sourceCodeStart":546,"sourceCodeEnd":582,"githubUrl":"https://github.com/tauri-apps/tauri/blob/52e4b6e71d8632a7e648f866c442e287ecddee34/crates/tauri-cli/src/mobile/android/mod.rs#L546-L582","documentation":"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.","triggerScenarios":"`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?'","commonSituations":"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.","solutions":["Rerun and answer 'y' to the 'install the Android SDK using the command line tools' prompt","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","Install the packages through Android Studio's SDK Manager GUI"],"exampleFix":"# before\n? Do you want to install the Android SDK using the command line tools? No\nerror: Skipping Android Studio SDK installation...\n# after\n$ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_HOME \\\n  --install \"platform-tools\" \"platforms;android-34\" \"ndk;27.0.0\"\ntauri android dev","handlingStrategy":"fallback","validationCode":"# ensure required SDK packages exist so the install prompt is never shown:\nsdkmanager --list_installed | grep -q 'platform-tools' || \\\n  sdkmanager --install \"platform-tools\" \"platforms;android-34\" \"ndk;27.0.0\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pre-install platform-tools, the platform package, and the NDK version your tauri-cli expects","Cache $ANDROID_HOME between CI runs so setup prompts disappear after the first run","Keep an SDK bootstrap script in the repo so every machine/runner converges to a ready state"],"tags":["android","sdk","cli-prompt","sdkmanager","setup"],"backgroundTag":"android-sdk-manual-setup-required","analyzedSha":"52e4b6e71d8632a7e648f866c442e287ecddee34","analyzedAt":"2026-08-20T13:59:20.734Z","schemaVersion":2},"datasetVersion":"2026-08-31T19:17:28.585Z"}