64-bit Ubuntu15.04 install android Studio Tutorial

Source: Internet
Author: User

This article mainly shows how to install Android studio in the latest 64-bit Ubuntu 15.04 process, including the JDK installation and SDK installation tutorials.

Installing the JDK

Install the JDK into the/opt/jdk1.7 directory (the direct parent directory of the bin directory) and edit the/etc/profile settings environment as follows:

# Setup jdk environment for all user.if-d /opt/jdk1.7then  JAVA_HOME=/opt/jdk1.7  CLASSPATH=.  PATH=${JAVA_HOME}/bin:$PATHfi

The selection of the installation path/opt and the profile environment are set to add the JDK environment to all users.

install android Studio

The Windows version of Android Studio is an executable installation file, and the Linux version of the installation package is extracted directly into the specified directory, which we extracted into the/home/username/ide/android studio directory.
Since the Linux version does not contain the SDK, you need to download the installation separately.

Installing the SDK

Extract the separately downloaded SDK to the current user's/HOME/USERNAME/IDE/SDK path and set the environment variables for the SDK:

# Setup android‘s sdk environment for current user.if-dthen  ANDROID_SDK_HOME=/home/alex/ide/sdk/  PATH=${ANDROID_SDK_HOME}/platform-tools:${ANDROID_SDK_HOME}/tools:$PATHfi

In the 64-bit Linux installation SDK, the biggest problem is the 32-bit ADB and aapt incompatibility problem, the solution please see the 64-bit Ubuntu can not use ADB, AAPT 32-bit compatibility issues.

start Android Studio

First boot, need to be modified. /android studio/bin/idea.properties, add a line at the end of the file:

disable.android.first.run=true

To avoid fetching Android SDK component information loading too long issues.
Enter through the shell: /android Studio/bin directory, execute:

sh studio.sh

Start Android Studio.

64-bit Ubuntu15.04 install android Studio Tutorial

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.