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

Tutorial on setting up scheduled tasks to backup the Oracle database under Linux

1. Check the character set of the database The ch...

The basic use of html includes links, style sheets, span and div, etc.

1. Links Hypertext links are very important in HTM...

MySQL Series 3 Basics

Table of contents Tutorial Series 1. Introduction...

A quick solution to accidentally delete MySQL data (MySQL Flashback Tool)

Overview Binlog2sql is an open source MySQL Binlo...

CSS3 frosted glass effect

If the frosted glass effect is done well, it can ...

JavaScript implements mouse control of free moving window

This article shares the specific code of JavaScri...

CSS3 realizes the animation effect of lotus blooming

Let’s look at the effect first: This effect looks...

MySQL 20 high-performance architecture design principles (worth collecting)

Open Source Database Architecture Design Principl...

Multiple ways to calculate age by birthday in MySQL

I didn't use MySQL very often before, and I w...

Use CSS content attr to achieve mouse hover prompt (tooltip) effect

Why do we achieve this effect? ​​In fact, this ef...

Two ways to implement HTML to randomly drag content positions

Test: Chrome v80.0.3987.122 is normal There are t...

JavaScript recursion detailed

Table of contents 1. What is recursion? 2. Solve ...

A brief analysis of adding listener events when value changes in html input

The effect to be achieved In many cases, we will ...

CSS3 achieves conic-gradient effect

grammar: background-image: conic-gradient(from an...

Simple implementation of mini-vue rendering

Table of contents Preface Target first step: Step...