List installed sdk package via command line
I want to list the installed sdk packages by command lines.(For some reasons I cannot use the GUI)
I have done some research and found out several commands to list the available packages on the remote server, but I fail to find any command to list the installed sdk packages yet.
4 Solutions collect form web for “List installed sdk package via command line”
With Android SDK Tools 25.2.3 (and higher):
As described in $ANDROID_HOME/tools/android list –help
- list : Lists existing targets or virtual devices.
- list avd : Lists existing Android Virtual Devices.
- list target : Lists existing targets.
- list device : Lists existing devices.
- list sdk : Lists remote SDK repository.
I guess you are looking for this:
$ANDROID_HOME/tools/android list target
You can learn more on the
android tool in the Command Line Reference.
It’s not quite a listing, but the source.properties files give details of the provenance. I’m using this to compare SDKs on different machines:
for i in $(find -name source.properties); do if [ -e ../other.sdk/$i ] ; then echo ========================= $i diff -wu $i ../other.sdk/$i | grep -v Pkg.License fi done
I strip Pkg.License because it’s hyoooj.
On my mac just
sdkmanager --list was not working, path needed to be specified.
Using android studio default SDK location the path is
As mentioned by @tnissi this is for Android SDK Tools 25.2.3 (and higher).
Or add the path by: