Ubuntu14.04 builds the android development environment and ubuntu14.04android
1. Download ADT
Official: http://developer.android.com/sdk/index.html (Wall-over or host modification required)
2. Decompress
1. Use the terminal to decompress the downloaded file to the current directory:
unzip adt-bundle-linux-x86_64-20140702.zip
Rename the folder adt
2. Use the archive manager for direct extraction
3. Install JDK
See previous blog
4. Add a Jre Link
At this time, when we run eclipse, an error is reported, and jre cannot be found:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) Must be available in order to run Eclipse. No Java virtual machine Was found after searching the following locations: /Home/gaoyl/setup/eclipse/jre/bin/java Java in your current PATH
1. Add Link (recommended)
Open the terminal, cd to the eclipse directory, and then:
ln -sf $JRE_HOME jre
You will find that there is a jre file under the eclipse folder, which is a link pointing to our JRE_HOME
2 Copy
Copy the jre directory under the jdk directory to the eclipse directory.
Try eclipse now. Everything works. OK.
How to build an android development environment in ubuntu 1104, it is best to have a picture of the truth
There are a lot of images on the Internet, but there are usually no images. You can check them yourself.
Build an Android Development Environment
2. Configure ADT (Figure 3.1 to figure 3.10)
Android project development can be performed only when the ADT plug-in and Android SDK are configured.
ADT Configuration:
Step 1: Open eclipse, double-click eclipse.exe, and click OK, as shown in Figure 3.1 to Figure 3.4;
Step 2: In eclipse, select "help-> Install New Software"-> click "add"-> select “archive..htm, select the adt-0.9.1.zip file, and click "OK"-> select "Developer Tools ", click "Next"-> "Finished"-> finish, select the terms of acceptance, and click "Finished" until the process is completed. After completion, eclipse is restarted. Figure 3.5 to figure 3.10;
3. Configure the Android SDK (Figure 3.1 to figure 3.14)
In eclipse, select "Window-> Preferences"-> "Android" in sequence. The Window shown in Figure 3.12 appears, close the warning window-> select the android sdk directory (decompressed by), 3.13, and click OK-> In Figure 3.14, click "Apply" and click "OK ", after the configuration is complete, return to the eclipse initial interface.
I have a document for you.
I have just configured the ADT version. If it is relatively high, you need to obtain an avd.