asd Android SDK Downloader — offline-friendly SDK component installer

--fix, -f

Part of the Command Reference.

asd --fix [name]
asd -f [name]

Scans installed components for a broken/incomplete extraction — currently detected as a package.xml with no other files alongside it — and reinstalls any that are affected.

Arguments

  • name (optional) — check only components whose package.xml path contains this string. Omit it to check everything under $ANDROID_HOME.

Examples

asd --fix          # check and repair everything installed
asd -f ndk           # check and repair just the NDK
Checking all installed packages for issues ...
Fixing: NDK (Side by side) (27.0.12077973) ...
Fixed 1 package(s).
NDK (Side by side) (27.0.12077973) is OK.

What it does

For each candidate component, asd counts the files in its directory (excluding package.xml). If that count is zero, it deletes the directory and reinstalls the exact same version via the same path as install — including SHA-1 verification.

See Repairing & Verifying for a fuller walkthrough, including how this differs from --verify.