Tutorial on installing Android Studio on Ubuntu 19 and below

Tutorial on installing Android Studio on Ubuntu 19 and below

Based on past experience, taking notes after completing a task is a good habit! The installation environment is Ubuntu

First download:

1. Android Studio

Download link: Here is the official website

2. Java JDK

Download link: java official website

What you need to download here is dk-13.0.1_linux-x64_bin.tar.gz , X64 means that the computer is a 64-bit system. tar.ge is a file type that lilnux can directly decompress

The second step is to unzip the downloaded file directly to the downloaded directory

Right click to extract to the current location

Step 3 Install Java and Android

Use the cp -r command to copy the downloaded file directly to the /opt/file directory

cp -r android-studio-ide-191.5900203-linux.tar.gz /opt/

cp -r jdk-13.0.1 /opt/

Here I use the decompressed file directly and move the decompressed file to the opt software directory.

The fourth step is to install a file similar to the Java environment variable

Open the terminal and enter the following command to open the profile file

cd /etc/
sudo vim profile

You will see the following interface:


insert image description here

Add the following at the bottom

#java installation environment export JAVA_HOME=/opt/jdk-13.0.1
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH

Save and exit.

After the modification is completed, execute

source /etc/profile

The following is the profile file that has been written


insert image description here

At this time, enter java -version in the command line to get the version information of jdk. If it is not available, it means the installation failed! ! !

Reinstall and check whether the installation path is correct, or check other people's articles on Ubuntu configuration and installation of Java JDK.

The last step is to open Android Studio and download the SDK

cd /opt/android/android-studio-ide-191.5900203-linux/android-studio/bin

./studio.sh

This tutorial ends here. I saw other people’s posts before, and they all said that they had to install the SDK first. However, I tried many times without success. Finally, when I almost gave up, I installed it directly under Android Studio. Very happy, the harder you work, the luckier you are!

Summarize

The above is the tutorial for installing Android Studio on Ubuntu 19 and below. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • New features of Android Studio 4.0 and solutions to upgrade exceptions
  • A series of problems and usage of AndroidStudio3.6.1 packaged jar and AndroidStudio4.0 packaged jar
  • Solution to the crash when launching the emulator in Android Studio on Ubuntu
  • Detailed steps to install Android Studio 2.2.2 under Ubuntu 16.04 LTS
  • Android Studio 4.0 is officially released. How to install it in Ubuntu 20.04

<<:  A magical MySQL deadlock troubleshooting record

>>:  How to prevent hyperlink redirection using JavaScript (multiple ways of writing)

Recommend

Summarize the commonly used nth-child selectors

Preface In front-end programming, we often use th...

How are Vue components parsed and rendered?

Preface This article will explain how Vue compone...

Detailed explanation of virtual DOM and diff algorithm in react

The role of virtual DOM First of all, we need to ...

Summary of principles for writing HTML pages for emails

Since HTML email is not an independent HOST page o...

How to use TypeScript in Vue

introduction In recent years, the call for TypeSc...

Detailed examples of how to use the box-shadow property in CSS3

There are many attributes in CSS. Some attributes...

A brief comparison of Props in React

Table of contents Props comparison of class compo...

Detailed explanation of Vue filter implementation and application scenarios

1. Brief Introduction Vue.js allows you to define...

How to use Nginx to carry rtmp live server

This time we set up an rtmp live broadcast server...

Installing the ping tool in a container built by Docker

Because the Base images pulled by Docker, such as...

MySQL table addition, deletion, modification and query basic tutorial

1. Create insert into [table name] (field1, field...

How to use Linux tr command

01. Command Overview The tr command can replace, ...