Here, I'm going to install JDK 1.8.
$ sudo Add-apt-repository ppa:webupd8team/java
$ sudo< Span class= "KWD" >apt-get update
Span class= "PLN" >$ sudoapt-get install Oracle -java8-installer Oracle -java8-set- default
Verify that Java is installed successfully:
[email protected]-Lenovo:~$ java -version
Now, set up the libraries required to install Android Studio
$ sudo apt-add-repository ppa:paolorotolo/android-studio
Android-studio-repo
$ sudoapt-get update
$ sudoapt-get install android-studio
The installation command above installs Android Studio under the/opt directory.
Now, run the following command to start the Installation wizard:
$ /opt/android-studio/bin/studio.sh
This activates the installation window. The following shows the process of installing Android Studio.
Install Android Studio
Installation Type
Setting up the emulator
When you click the Finish button, the Consent Agreement page is displayed. When you accept the agreement, it begins to download the required components.
Download components
This step completes the installation of Android Studio. When you restart Android Studio, you will see the Welcome screen below, from where you can start working with Android Studio.
Welcome interface
Installing on CentOS 7
Now let's look at how to install Android Studio on CentOS 7. Here you also need to install JDK 1.6 or later. If you are not the root user, remember to use ' sudo ' in front of the command. You can download the latest version of the JDK. If you have an older version installed, you will need to uninstall the old version before installing the new version. In the example below, I will install the JDK 1.8.0_65 by downloading the required RPM package.
[[email protected]-39~]# rpm -ivh jdk-8u65-linux-x64.rpm
Preparing...################################# [100%]
Updating/ installing...
1:jdk1.8.0_65-2000:1.8.0_65-fcs ################################# [100%]
Unpacking JAR files...
tools.jar...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
jfxrt.jar...
If the Java path is not set correctly, you will see an error message. Therefore, set the correct path:
export JAVA_HOME=/usr/java/jdk1.8.0_25/
export PATH=$PATH:$JAVA_HOME
Check to see if the correct version is installed:
[[email protected]-39~]# java -version
java version "1.8.0_65"
Java(TM) SE RuntimeEnvironment(build 1.8.0_65-b17)
JavaHotSpot(TM)64-BitServer VM (build 25.65-b01, mixed mode)
If you see any error message like "Unable-to-run-mksdcard-sdk-tool:" When you install Android Studio, you may want to install the following package on the CentOS 7 64-bit system:
- glibc.i686
- glibc-devel.i686
- libstdc++.i686
- zlib-devel.i686
- ncurses-devel.i686
- libx11-devel.i686
- libxrender.i686
- libxrandr.i686
The same is true by downloading the IDE files from the Android website and then extracting the installation studio.
[[email protected]-39 tmp]# unzip android-studio-ide-141.2343393-linux.zip
Move the Android-studio directory to the/OPT directory
[[email protected]-39 tmp]#mv/tmp/android-studio/ /opt/
You can create a symbolic link to the studio executable for a quick start, if you need it.
[[email protected]-39 tmp]#ln-s /opt/android-studio/bin/studio.sh /usr/local/bin/android-studio
Now start studio in the terminal:
[[email protected] ~]#studio
It is then used to complete the installation and is the same as in the previous Ubuntu installation process. Once the installation is complete, you can start developing your own Android app.
Summarize
Although released less than a year, Android Studio has replaced Eclipse as the most important IDE for Android development. It is the only official IDE tool that supports the Android SDK and other Android features that will be available after Google. So, what are you waiting for? Quickly install Android Studio to experience the fun of developing Android apps.
For more information about Android Studio, see the following useful links :
Install android Studio http://www.linuxidc.com/Linux/2015-06/119318.htm under Ubuntu 15.04
The simulator in Android Studio 2.0 has been 50 times times faster http://www.linuxidc.com/Linux/2015-11/125481.htm
Ubuntu 12.04 (64-bit) installs Android Studio entire process http://www.linuxidc.com/Linux/2013-05/84812.htm
Android Studio v0.1 Early adopters http://www.linuxidc.com/Linux/2013-05/84681.htm
Android Studio Using tutorial http://www.linuxidc.com/Linux/2013-05/84579.htm
Android Studio Development Guide Http://www.linuxidc.com/Linux/2013-05/84543.htm
Android Studio Set themes and problem solving methods that do not support Chinese http://www.linuxidc.com/Linux/2013-05/84488.htm
Android Studio Download Installation and cannot open the workaround http://www.linuxidc.com/Linux/2013-05/84409.htm
Android Studio installation using graphics tutorial http://www.linuxidc.com/Linux/2014-09/106914.htm
Install Android Studio 1.3 (Google Android IDE Development) on Ubuntu http://www.linuxidc.com/Linux/2015-08/121004.htm
Detailed Introduction to Android Studio : please click here
Android Studio : please click here
CentOS installed Android Studio (2)