2 Ways to Install Android Studio on Ubuntu 22.04 LTS
Learn how to install Android Studio on Ubuntu 22.04 LTS Jammy JellyFish using Snap GUI or manually using command terminal.
To create Android applications, developers can download a free official platform called “Android Studio”. It is based on the IntelliJ IDEA Community Edition development environment and therefore has a very powerful code editor and many very useful development tools. This gives developers an alternative to the Android SDK, which basically consists of Eclipse and the ADT plugin. It is available to download and install for Windows 10/8/7, macOS, Linux, and ChromeOS.
Android Studio comes with the development environment, you can do the following things:
• Advanced build tools
• Powerful source code development (smart editing, advanced code refactoring, static code analysis)
• An improved graphical interface
• Simplified access to Google services
• Open source development
• Code optimization
• Google Cloud Platform Support
• Code templates
• Several construction variants
• Gradle Build System – a Java-based build management automation tool
• Plush development tools
Steps to Install Android Studio on Ubuntu 22.04 Jammy
Here we are using Ubuntu 22.04 LTS, however, the steps given will be the same for other Ubuntu based operating systems.
To install Android studio on your Ubuntu Linux system, you must have at least 2 GB RAM (8 GB recommended); more … than 4GB free disk space is recommended; a resolution of 1920×1080 pixels for optimal display results;
Java Development Kit and Java Runtime Environment (JRE). Processor (optional): Android emulator hardware acceleration requires an Intel processor supporting Intel VT-x, Intel EM64T, and Execute Disable (XD) Bit feature technologies. Without such a processor, Android applications can be run in the emulator, but the execution is much slower and slower.
2. Run System Update
To refresh Ubuntu’s repositories and update installed packages, let’s first run the system update command:
sudo apt update
3. Command to install Android Studio
There are two easy ways to install Android Studio on Ubuntu 22.04 LTS– one is using the SNAP package manager and another one is by downloading the Android studio package manually. Use the one which seems appropriate to you.
See– how to enable SNAP on Linux Mint
#1st Method using SNAP:
It is the easiest method to install this developing platform on Linux. And while writing this tutorial, the latest version of Android Studio is available via Snapcraft. There are further two ways to get packages from SNAP. One is using its command
sudo snap install android-studio --classic
The other is, if you don’t want to use the command line interfacethen directly open Ubuntu Software Center and install Studio using the graphical user interface.
• Go to All applications
• To research Ubuntu Software
• Open it and click on the To research icon given on the upper left side.
• Type Android Studiowait a few seconds, as it appears in the results, click on it.
• Finally, press the To install button and it will be automatically installed on your Linux operating system.
#2nd method using manually downloaded package
If you don’t want to use SNAP, another method is to manually download its files and configure it for use on Ubuntu 22.04 Linux.
4. Install Java Open Source
Android Studio requires JDK to work properly. At the time of writing this tutorial, the latest version of Open JDK was available to install directly using the official Ubuntu-OpenJDK repository.
sudo apt install default-jdk
Once the installation is complete, check the version by typing:
4. Download Android Studio IDE packages
Now, for some reason you don’t want to use the SNAP package, then it is possible to get the Android studio intended to be installed on the Linux system directly from its official website. Here is the link, visit the page and download the latest IDE package available for linux.
5. Unzip the Studio Tar File
Once you’ve downloaded the file, it’s time to unzip it. Follow the given commands:
cd Downloads sudo tar -xvf android-studio-*.*-linux.tar.gz -C /usr/local/
7. Run the Android Studio setup script
After extracting the package and moving it to the local folder, let’s run the script to configure this Android application development and emulation platform.
sudo sh /usr/local/android-studio/bin/studio.sh
If you already have a previous configuration or installation folder, you can select it, otherwise leave the default option selected.
Select how you want to set up the development environment for Android studio on Ubuntu 22.04. To install selective components, go for Custom, otherwise leave the Standard option is selected.
8. Select UI theme – Dark or Light
Although we can also set it later, if you want, do it here to set the default dark or light theme.
9. Create Android Studio desktop shortcut and command line entry
Once the installation is done. You will see the Android Studio, Create a new project and give your project a name and you will be on the main screen of this app development platform.
Click on the Tools and select Create an office entrance ability to create shortcut to easily access Android Studio from app launcher or desktop.
While running Studio from the command line, select Create a command line launcher. Once done, you can start the platform by simply typing
in the airport.
• 3 Ways to Install Visual Studio Code in Ubuntu
• How To Install FireDM On Ubuntu 22.04 | 20.04…
• How to Reset Ubuntu 22.04 LTS Root Password
• 4 best Linux open source firewalls for cybersecurity…