8

I have installed android sdk in my Ubuntu machine, i am trying to see what is the version i am using. When Googled i found few links for this in stack overflow

How to retrieve the android sdk version?

Android How to check Version

These links specify method to get version via code, but how do i check it through terminal in ubuntu?

Community
  • 1
  • 1
balanv
  • 10,686
  • 27
  • 91
  • 137

1 Answers1

8

The two methods you posted are applicable for Android devices not for a computer that has Android SDKs installed to develop. You should have many Android SDKs installed on your Ubuntu machine.

The check in the terminal all the SDKs in your machine you can use sdkmanager tool:

${ANDROID_HOME}/tools/bin/sdkmanager --list

It will show you three main blocks: Installed packages, Available Packages and Available Updates.

You can use the same tool to update and install/uninstall packages too.

logoff
  • 3,347
  • 5
  • 41
  • 58
  • 1
    Hey! It would be helpful if you add the method to check sdk version from terminal since it is the first link that Google throws off. – PallavBakshi Nov 28 '17 at 06:10
  • `${ANDROID_HOME}` is the folder where you have installed Android SDK. Typically is `~/android-sdks`. – logoff Dec 10 '18 at 11:20
  • echo $ANDROID_HOME will give you the value , Typically it will be /home//Android/Sdk – coder3521 Jun 25 '19 at 09:40