This chapter just wrote about how to configure the JDK, and the configuration of the Adt-bundle. For previous versions of Adt-bundle, the Cpu/abi system image is available, and the AVD can be created directly after the two steps described in this article, but the latest adt-bundle downloaded from the official website is not mirrored. The following chapter describes how to download multiple versions of Android platforms and download images.
One,JDK Download, installation and environment variable configuration
1) download of JDK
A, enter the URL https://www.oracle.com/ into the Oracle website, as below, click Downloads under the bar Java SE , enter Java SE the Download interface:
Below, click the jdk 's Download button in the download screen and pop up a download interface with multiple versions of the jdk :
Below, select the latest version of JDK 8u92, select the appropriate version to download according to your computer's system after accepting the Agreement license:
2) installation of JDK
First in the D disk, the new empty folder D:\java\jdk1.8.0_92 and D:\java\jre1.8.0_92, easy to install.
Double-click to run the downloaded jdk, the way will be two times the file installation location prompt, the first time is the JDK installation location, the second is The installation location of the JRE , select the installation location as D:\java\jdk1.8.0_92 and D:\java\jre1.8.0_92, respectively, as follows:
The final file installation location is as follows:
3) JDK system environment variable configuration ( with Test )
On the desktop, right-click Computer ---properties ---advanced environment settings ---advanced --- "Environment variables, the operation is shown as follows
There are many tutorials on the web that are too complex to perform in just two steps:
A, add the bin path of the JDK to the path environment variable of the system variable , and note that each path ends with a semicolon
Path: Increase D:\java\jdk1.8.0_92\bin;
B, add a java_home entry in the environment variable of the system variable to store the JDK 's installation path
Java_home:D:\java\jdk1.8.0_92
Restart the computer, the above two paths to take effect, the system will automatically generate the CLASSPATH option in the system variables . After win+r starts the cmd command line interface, the following uses javac to test the jdk If the configuration is successful, the successful display indicates that the configuration was successful:
Two, theEclipse integrated development environment Collocation
Early developers need to download Eclipse first and then download and install the ADT plugin and the SDK for Android . and configure them. This is a lot of steps, and the Android Developer website provides a packaged download of the relevant development environment, including Eclipse,ADT, and Android SDK, direct download decompression, then the environment will be much easier to match.
1), download of Android SDK and Eclipse Integrated Development Environment Package (adt-bundle)
To enter the official Android document URL http://wear.techbrood.com/, after entering the site, on the menu bar, click the Develop option, then click Tools option, click the button "Download Eclipse ADT" in the Web content below :
After entering the download page, click the mouse in the order shown to download:
2), unpack the adt-bundle Package, configure the environment variables, and open eclipse
As shown below, select the D Drive Decompression, the following is the extracted file:
In the path option of the system environment variable, add the tools directory path under the SDK folder:
After you open the Eclipse application in the D:\adt-bundle-windows-x86_64-20140702\eclipse directory , the first time you open Eclipse needs to set up the project directory and set it up, such as F:\android_workplace.
After opening Eclipse , click the Window menu ---"Preferences---" Android, Select the Unpacked SDK directory on the right SDK location directory and click Apply, so that the SDK is ready to be paired. :
Although the new version has Android 4.4W this platform, but after I create AVD (virtual Android emulator), display error, missing Cpu/abi image, the following chapter describes how to resolve.
How to match the latest Android development environment