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