Are you an Android Application developer? Then you should know about Android SDK. Basically, SDK is a set of tools used to develop apps for the Android system. Android SDK consists of mainly platform tools, build tools, sdk tools, and emulator. These make your life easy to create APK - to turn your program into an Android app.
All modern Linux Desktop environments including Ubuntu support Android SDK. And some SDKs come along with Android Studio. You may also install Android SDK without Andriod Studio.
In this tutorial, we learn how to Install Android SDK on Ubuntu 22.04.
1. Install Java
The newer version of Android Studio comes with OpenJDK. But it's recommended to have it installed to make sure you have the latest versions.
To install JDK from OpenJDK, type:
sudo apt install default-jdk
You can now verify JDK versions using the following command:
javac --version
The output shows the openjdk 11.0.17 versions that confirm it got installed.
2. Add Android Studio PPA Repository
We can install Android studio in many ways. Here we are using the PPA method. As of writing this tutorial, we have a PPA for Android Studio which supports the latest Ubuntu.
To add the maarten-fonville PPA, type,
sudo add-apt-repository ppa:maarten-fonville/android-studio
3. Update the system
The apt-add-repository command only adds a line to /etc/apt/source.list file. To resynchronize the package index files from their sources have to update the system.
Run the following command to update the system:
sudo apt update
4. Install Android Studio Package
Once the system is updated, you can simply install the Android Studio package using apt.
sudo apt install android-studio
This basically downloads the android studio tar.gz file from the official android website and then installs it with dependencies.
Note: If you just need android SDK you can install it without installing android studio.
6. Install Android SDKs
Once Android Studio is installed, open Andriod Studio App from the graphical interface. You can easily find it by searching Andriod studio in the search bar.
From the Welcome to Android Studio screen click the More Actions button.
From the left menu select Android SDK and choose SDK Tools from the tab.
You can see some SDK tools such as Build-Tools, Emulator, and Platform-Tools come preinstalled along with Android Studio.
For example, let's install SDK command line tools by selecting the check box and then clicking the OK button.
This downloads the latest version of the SDK tools we choose.
Once completed the status column will show the version installed and the "installed" status message.
Conclusion
In this tutorial, we learned how to install Android studio SDK on Ubuntu 22.04. Some SDKs already come preinstalled when you install Android Studio. Go ahead with your required packages.
Thanks for reading, please leave your feedback and suggestions in the below comment section.
Comments