How to use the Zip File In Android
Installing Java OpenJDK
To install Android Studio we require OpenJDK version 8 or above to be installed in our system. First, we will install OpenJDK 8. The installation is very simple, steps are mentioned below:
i). We can start by updating the package index:
$ sudo apt update
ii). Now install the OpenJDK 8 package using the below command
$ sudo apt install openjdk-8-jdk
iii). To verify the installation we can use the below command to check the version:
$ java -version
The output will be something like this:
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Downloading Android Studio
To download and install the Android Studio, visit https://developer.android.com/studio. Click on the “Download Android Studio Giraffe” button.
A prompt asking us to accept all the licenses will appear. Scroll to the bottom and accept the license and click on “Download Android Studio Iguana | 2023.2.1 Patch 1 for Linux”.
Note: The version number may vary based on the time of installation
After downloading the zip file, locate it in your file explorer and extract it.
Copy over the extracted folder to /opt/local.
cd /path/to/extracted/folder
sudo cp android-studio/ /opt/local/ -v
Now Android Studio has been installed on our Ubuntu desktop.
How to Install Android Studio on Ubuntu?
Android Studio is a full-featured cross-platform IDE that helps us to build applications for Android devices. Android Studio is based on JetBrains’ IntelliJ IDEA. This IDE includes everything we need for Android development. Android Studio build system is powered by Gradle allowing you to make multiple build variants for various devices from one project. This article will explain the way to install Android Studio on Ubuntu 20.04. We can use the same instructions for older Ubuntu versions and any Ubuntu-based distribution, including Ubuntu, Linux Mint, and Elementary OS.
Prerequisites: We need to be logged in as a user with sudo access. It will make our system able to install packages on our Ubuntu system.