Build the Android Studio development environment on Ubuntu17.04

Source: Internet
Author: User

It was in the Ubuntu environment in the lab class, and although it was written on the Windows system, I was ready to configure an Android studio environment under Ubuntu.

Through Baidu, I first see the simplest way, is to enter the following command in the terminal:

    1. sudo apt-add-repository ppa:paolorotolo/android-studio
    2. sudo apt-get update
    3. sudo apt-get install android-studio

But the result is:

Have failed.

Then I switched to a more complicated approach:

1 I first installed the SDK, the next is the Oracle SDK, I first extracted to/home/qchrodinger, and then enter the following command in Terminal:

Cd/usr/local into the/usr/local directory

sudo mkdir java new folder Java

sudo cp/home/qchrodinger/jdk1.8.0_131. Copy the SDK package.

At this point, the error indicates that omitting Directiory, is in that directory there is a directory, the solution is to add-R, that is

sudo cp-r/home/qchrodinger/jdk1.8.0_131.

That's all you can do.

Then configure the environment variables:

Vim ~/.BASHRC here to install VIM, according to the prompt.

Add the following three lines at the end of the file

Export java_home=/usr/local/java/jdk1.8.0_91
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt,jar: $JAVA _home/lib/tools.jar

2 Next download Android Studio

3 then go to the Bin folder to execute the studio.sh.

Then you can run Android studio, which is still very slow. The original Android studio regardless of which system is so slow, sure enough to look at the computer.

Build the Android Studio development environment on Ubuntu17.04

Related Article

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.