English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Operation method for setting up Android development environment under Linux

It's quite麻烦 to set up an Android development environment on Linux, let's take a look at my results first:

Students who want to set up Android development environment or other development environments on Linux can discuss together!

The steps are as follows:

①Since I use the deepin system, it will come with an openjdk8First, we can install openjdk8Uninstall, there are methods on the internet, but I suggest backing up first before uninstalling;

②Download JDK, AndrodStudio, SDK. This step doesn't need to be said much, right!

③Just unzip JDK to the directory you want, if you encounter problems like JAVA_TOOL_OPTIONS during the test, it is definitely because the system's original OpenJDK has not been uninstalled;

④Unzip and install AndroidStudio, these installations are very simple, just find the Studio.sh file in the directory, if there is no shortcut, you can refer to my other blog post;

⑤ The most important step: Configure environment variables (fill in according to your actual situation)

In/etc/Add the following to the end of the profile file:
export JAVA_HOME=/usr/local/java/jdk1.8.0_152 (Enter your JDK path here)
export JRE_HOME=/usr/local/java/jdk1.8.0_152/jre 
export PATH=$PATH:/usr/local/java/jdk1.8.0_152/bin:home/tim/develop/Android/SDK/tools:/home/tim/develop/Android/SDK/plat-tools
export CLASSPATH=./:/usr/local/java/jdk1.8.0_152/lib:/usr/local/java/jdk1.8.0_152/jre/lib
export ANDROID_SDK_HOME=/home/tim/.android/avd

After the environment variables are configured, although AndroidStudio can work normally, the Android emulator may still have problems. Many times, it is due to incompatibility of the SO library:

After deleting, there are basically no errors. If there were no errors at the beginning, there is no need to delete these libraries

Okay, let's take a look at the final effect:

If you encounter other problems during the process of setting up the environment, let's communicate together! Although I am also a beginner fighting hard!

The above operation method for setting up the Android development environment under Linux is all the content shared by the editor. I hope it can be a reference for everyone, and I also hope everyone will support and cheer for the tutorial.

Declaration: The content of this article is from the Internet, and the copyright belongs to the original author. The content is contributed and uploaded by Internet users spontaneously. This website does not own the copyright, has not been manually edited, and does not assume relevant legal liabilities. If you find any suspected copyright content, please send an email to: notice#oldtoolbag.com (Please replace # with @ when sending an email for reporting, and provide relevant evidence. Once verified, this site will immediately delete the infringing content.)

You may also like