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 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: 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 The following is the profile file that has been written At this time, enter 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! You may also be interested in:
|
<<: A magical MySQL deadlock troubleshooting record
>>: How to prevent hyperlink redirection using JavaScript (multiple ways of writing)
Preface In front-end programming, we often use th...
Preface This article will explain how Vue compone...
1. Discover the problem © is the copyrigh...
The role of virtual DOM First of all, we need to ...
Since HTML email is not an independent HOST page o...
introduction In recent years, the call for TypeSc...
There are many attributes in CSS. Some attributes...
Table of contents Props comparison of class compo...
1. Brief Introduction Vue.js allows you to define...
This time we set up an rtmp live broadcast server...
Because the Base images pulled by Docker, such as...
1. Create insert into [table name] (field1, field...
This article describes the commonly used MySQL fu...
01. Command Overview The tr command can replace, ...
Update: Recently, it was discovered that the serv...