CentOS installed Android Studio (2)

Source: Internet
Author: User

Here, I'm going to install JDK 1.8.

    1. $ sudo Add-apt-repository ppa:webupd8team/java
    2. $ sudo< Span class= "KWD" >apt-get update
    3. Span class= "PLN" >$ sudoapt-get install Oracle -java8-installer Oracle -java8-set- default

Verify that Java is installed successfully:

    1. [email protected]-Lenovo:~$ java -version

Now, set up the libraries required to install Android Studio

    1. $ sudo apt-add-repository ppa:paolorotolo/android-studio

Android-studio-repo

    1. $ sudoapt-get update
    2. $ 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:

    1. $ /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.

  1. [[email protected]-39~]# rpm -ivh jdk-8u65-linux-x64.rpm
  2. Preparing...################################# [100%]
  3. Updating/ installing...
  4. 1:jdk1.8.0_65-2000:1.8.0_65-fcs ################################# [100%]
  5. Unpacking JAR files...
  6. tools.jar...
  7. plugin.jar...
  8. javaws.jar...
  9. deploy.jar...
  10. rt.jar...
  11. jsse.jar...
  12. charsets.jar...
  13. localedata.jar...
  14. jfxrt.jar...

If the Java path is not set correctly, you will see an error message. Therefore, set the correct path:

    1. export JAVA_HOME=/usr/java/jdk1.8.0_25/
    2. export PATH=$PATH:$JAVA_HOME

Check to see if the correct version is installed:

  1. [[email protected]-39~]# java -version
  2. java version "1.8.0_65"
  3. Java(TM) SE RuntimeEnvironment(build 1.8.0_65-b17)
  4. 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.

    1. [[email protected]-39 tmp]# unzip android-studio-ide-141.2343393-linux.zip

Move the Android-studio directory to the/OPT directory

    1. [[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.

    1. [[email protected]-39 tmp]#ln-s /opt/android-studio/bin/studio.sh /usr/local/bin/android-studio

Now start studio in the terminal:

    1. [[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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.