Android Studio is a well-known software tool for developing Android applications. It was developed by Google and can be installed on many different operating systems such as Linux, Windows, and macOS. Android Studio is a feature-rich tool for developing mobile applications and user interfaces.
In this article, I’ll explain how to install Android Studio on a CentOS 8 desktop system. I’ll show you two installation methods, first using the Snap installer and then using the official Android Studio installer from Google.
To install Android Studio on your system, you need to install Java as a prerequisite. Since most of the Android Studio packages were built on Java.
First, make sure Java is already installed on your system or don’t use the following command:
$ java -version
If Java is not already installed, you can install it with the following command:
$ sudo yum install openjdk-11-jdk
Install Android Studio on CentOS 8 with Snap
Android Studio is not available in the CentOS 8 official Yum package repository. Therefore, you need to install it using a different method. The Snap application allows you to install Android Studio on CentOS 8. To do this, first install Snap on your system with the following command:
$ sudo yum install snapd
Once the Snap installation is complete, install the Android Studio through the Snap package manager using the following command:
$ sudo snap install android-studio --classic
After you have finished installing Android Studio, start this tool from the application search bar. Enter ‘android-studio’ in the search bar, you will see the android studio icon in the search results like this:
You can also start Android Studio by entering “android-studio” in the terminal window as follows:
You can also remove or uninstall the Android Studio with the following command:
$ sudo snap remove android-studio
Install Android Studio from the Android website
You can also download the latest version of Android studio from the official Android website here https://developer.android.com/studio. Open the URL and click Download Options on the web page that appears.
Here you select the desired Android Studio IDE according to your system requirements. Select the Android Studio IDE for Linux 64-bit System to download.
Accept the following terms to download the Android studio:
After that, the Android Studio IDE for Linux will be saved in the download folder of your system.
Use the following command to navigate to the downloads and list the files:
$ cd Downloads $ ls
Now extract the tar file with the following command:
$ tar -xvf android.tar.gz
After extracting the tar file, navigate to the Android Studio folder and then to bin. Here run the ‘studio.sh’ file with the following command:
Or click directly on this file to run it.
The following dialog is now displayed on the CentOS 8 desktop. Select ‘Do not import settings’ and click OK.
In the following dialog for data approval, click on the “Do not send” option.
At that moment, you will see the Android Welcome Wizard set up on the system. Click on Continue.
In the next dialog select “Standard” setup for an Android studio and click Next.
Now select the UI theme ‘Light’ for the Android studio as follows:
In the next wizard, check the installation settings and click the Next button.
In the next window, check the emulator settings and click the “Finish” button.
After that, all of the Android Studio components will be downloaded to your system.
After a while, you will see that all of the components have been downloaded to your CentOS 8 system. Then click on the ‘Finish’ button.
The following window should appear on your system:
The above window shows that the Android Studio IDE has been successfully configured on your system. Now you can create and enjoy new Android projects.
In this article, we learned how to install one of the most popular mobile application development tools, Android Studio, on CentOS 8 using the Snap installer package and the official Android Studio installer. Now you can use this tool to create new innovative unique applications.