Skip to main content

get_android_home

Function get_android_home 

Source
pub async fn get_android_home() -> Result<PathBuf>
Expand description

Get the Android SDK home directory

This function tries to find the Android SDK in the following order:

  1. ANDROID_HOME environment variable
  2. ANDROID_SDK_ROOT environment variable
  3. Platform-specific default locations:
    • Linux: $HOME/Android/sdk or $HOME/Android/Sdk
    • macOS: $HOME/Library/Android/sdk
    • Windows: %LOCALAPPDATA%/Android/Sdk