On a whim these days, I want to write Android software on Ubuntu. So just go online and find some information on Ubuntu to build an Android environment. The result is either incomplete or obsolete.
So I wrote down the process of setting up my Android environment so that I could forget to take part in the test, and give some inspiration to the readers of this blog post.
There are several steps to building an Android environment:
1. You have to install Java.
Download link java
Select the latest version number and unzip the JDK to the directory you want to put. Mine is /var/android/java.
Then configure the environment variables:
sudo gedit/etc/profile, adding at the end of the profile file
Export Java_home=/var/android/java
Export classpath=.: $JAVA _home/lib/tools.jar: $JAVA _home/lib/dt.jar
Export path= $PATH: $JAVA _home/bin
The red ones are the ones you need to change.
Then reboot the system and enter the Java and JAVAC tests on the terminal for success
2. Install Eclipse
: http://www.eclipse.org/downloads/
What about the other decompression?
I'm extracting it to /var/android/jeclipse .
It's better to manage.
3.ConfigurationADT
Launch Eclipse, menu help, Install New software ...- Available softwareon the Select tab,
Click on the right button "Add ..."to pop up the dialog box, set for example:
Name: ADT (any fill-in)
location:http://dl-ssl.google.com/android/eclipse/
Click "OK" to return. When you return, clickSelectAll. Click "Next >"two more times.
You can also download the ready-made files and install them directly from the Internet.
4. Set the SDK path
EclipseAfter restarting, selectWindow > Preferences ..., in the Properties box that opens, selectAndroid,InSDK LocationIn the Enter yourAndroid SDKfolder, and then pressApplybutton.
Download Link: Click to open the link
Update after download
after the download is complete, unzip the terminal into the root folder of the SDK and run: T ools/android Update Sdk–u
You can start the same updates as in Windows.
The android1.0-4.2 in platform of the SDK are clicked to open the link.
The celestial is not expected to download it. I was the arduous fq download.
Build Android development environment on ubuntu14.04