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