Ubuntu15.04 Installing the Android development environment

Source: Internet
Author: User
Tags java se

First, install the Java SE JKD

A, download Http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=ocomen Select the latest version, the current latest version 1.8.0. Download jdk-8u45-linux-x64.tar.gz.

B, unzip the download package, add environment variables.

$ sudo vim ~/.BASHRC

Add at the end of the document

Export Java_home=/home/jeremy/jdk1.8.0export jre_home=${java_home}/jre  export classpath=.:${java_home}/lib:${ Jre_home}/lib  export Path=${java_home}/bin: $PATH  

It is possible to install eclipse in advance, there is openjdk in the system, so you need to configure the default JDK version. It is a good idea to install the Java SE JDk before installing Eclipse.

sudo update-alternatives--install/usr/bin/java java/home/jeremy/jdk1.8.0/bin/java  sudo update-alternatives --install/usr/bin/javac javac/home/jeremy/jdk1.8.0/bin/javac  sudo update-alternatives--install/usr/bin/ Jar Jar/home/jeremy/jdk1.8.0/bin/jar   sudo update-alternatives--install/usr/bin/javah javah/home/jeremy/ Jdk1.8.0/bin/javah 300   

And then execute

sudo update-alternatives--config java
sudo update-alternatives--config JAVC
sudo update-alternatives--config jar
sudo update-alternatives--config javah
sudo update-alternatives--config javap

Follow the prompts to select the Java SE JDK version as the default version.

Set the test if it is set successfully.

[Email protected]:~$ javac-versionpicked up java_tool_options:-javaagent:/usr/share/java/jayatanaag.jar javac 1.8.0_ 45

Second, install the Android SDK, http://developer.android.com (need Fq), download and then unzip.

Third, install Eclipse, then add Android development plugin (need FQ)

Iv. install genymotion, download and install the website directly.

Hello program encountered the problem:

1. Error: [SDK Manager] Tools/android:110:exec:java:permission denied

Online answer: I found the answer in StackOverflow because I placed the Android SDK Linux version on a non-mounted partition. The Sh./android SDK solves the problem.

[Email protected]:~/android-sdks/tools$ sh./android SDK

  

2. Error:

Online Answer: 64-bit system needs to install 32-bit version support, the installation code is as follows:

sudo apt-get install-y libc6:i386 libgcc1:i386 libstdc++6:i386 libz1:i386

  

Ubuntu15.04 Installing the Android development environment

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.