As we know, the Android development environment need four PART:JDK SDK IDE ADT.
Problems:
There is JDK versions from different companise. Previous, I run the command:
$sudo Apt-get Install OPENJDK-7-JDK
To install OpenJDK released by Ubuntu, and then,installing the Eclipse IDE,
$sudo Apt-get Install Eclipse-platform
Coming Next is installing the SDK from official Website,all are well,
The troublesome occurred when I went to installed ADT and created a new project.
So, I don't support the use OPENJDK.
Solution:
1. The JDK installed from Oracle:
$sudo add-apt-repository ppa:webupd8team/java$sudo apt-get update$sudo apt-get install oracle-java8-installer
and don ' t cofigue any environment variables.
More information:http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
The command to run test JDK is installed correctly
$java-version
2. Installing the Eclipse
Eclipse Vesion (Eclipse IDE for Java developers) is download from http://www.eclipse.org/downloads/index-developer.php
and click Eclipse.exe and Eclipse would be start.
3. Installing the SDK (http://developer.android.com/sdk/index.html)
Choosing the stand-alone SDK Tools,i move the SDK from Downloads file To/opt/java
$sudo mv/download/Download Package name/opt/java
$CD/opt/java
$sudo unzip./download Package name
Add environment path to file:
$sudo Gedit/etc/profile
Adding the following content in the end:
Export Android_home=/opt/java/android-sdk-linux
Export path= $ANDROID _home/tools: $PATH
Export path= $ANDROID _home/platform-tools: $PATH
Next, testing installing SDK
$ android
The window would be open and can choose what the version of you need install.
and url:http://mirrors.neusoft.edu.cn sort:80
More Information:http://ask.android-studio.org/?/article/34
4, installing the adt:installing sdk4.2.2,and I Choose the ADT version is 23.
The information occurred by Run project note, the ADT version need update when I installing ADT17
Download the ADT form website.
and start eclipse
Click Help->install New software ... the first edit form input name and second is an ADT path (click achive to add ADT file Path
Restart Eclipse to add SDK (Window->preference,click Android and choose android version)
All are well, create a new project, right click on the project to choose Run as to Displyay the result.
How to build a Android environment in Ubuntu 15.10