Build an eclipse Android Development Environment (eclipse + jdk + adt + sdk) and Android adt
The school's summer job allows android to write an app. There are two solutions (android stduio + sdk and eclipse + jdk + adt + sdk). After a few days, I found that the latter is easy to use, however, the installation environment and downloading are really just half-lived. (because eclipse is open-source, you just need to delete the configuration, so you don't have to worry about uninstalling it. It is quite useful) most of the tutorials I 've found on the Internet are just half done. I will integrate them. I personally tested the installation and running of the project (wiin7 64bit) and my classmates (win10 ).
To use eclipse to write Android development projects, you must first prepare four things,Eclipse, jdk, adt, and sdk.All the packages I have provided here are compressed files. During installation, all three packages except the adt do not need to be decompressed. After the three files are decompressed, remember the path of the extracted files. You can start the installation below. (My eclipse version is mars version 4.5, jdk version 1.7, adt version 23.0.3, and sdk version r24.4.1)
First, configure the jdk environment.
Control Panel-> advanced system settings-> System Variables
1. Create a New java_home variable with the value of the installation path of the jdk decompression file.
2. Create a New classpath variable with the value of.; % java-home % \ lib; % java_home % \ lib \ tools. jar (Notes:)
3. Find the path variable and add % java_home % \ bin; % java_home % \ jre \ bin to the original value ;(Ps if the previous value is not at the end; add first; Add the number plus a string of paths)
In this way, the jdk environment is configured. Finally, enter Java or javac in cmd to view the relevant information.
Second, run ecplise to install the adt.
Help-> Install New Software... -> add (in the upper right corner) appears a selection box, Name: generally write the ADT version number, easy to find, such as I gave the ADT-23.0.3, Location: http: // enter the ADT address (Be sure to include the compressed package name)
After you select OK, two projects, Developer tools and NDK..., are displayed in the middle. Check the first project (Developer tools), next, and finish. During the installation process, the system reports a security warning. After the installation is complete, restart the system.
After the installation is complete, go to help-> Install New Software...-> already installed and you will see various types of ADT packages. Here is ADT23.0.3.
After the installation is complete, two icons for Android are displayed in the menu bar. One is sdk download and the other is avd download.
If not, go to windows> perspective> mimize perspective... -> Action Set Availability: Check the third Android SDK and AVD Manager, and the icon appears in the menu.
Third, download various android APIs.
Windows-> preferences-> Android, SDK location: select the path to decompress the sdk before ,(Note: If the value is not included in the upper-level of the add-ons file, the cross cannot be clicked OK. There is also a problem, if the ADT version is earlier than the SDK version requirements, you cannot click OK. Here, ADT23.0.3 is provided to be compatible with SDK -- r24.4.1 and earlier versions. The previously installed ADT21.0.1 is not supported, I haven't tried anything for the moment.). Click OK and the sdk manager download page will appear. (My version is 4.4.2 and API19. Students reflect that Android8.0 requires jdk1.8, and JDK 1.7 is compatible with 5.x and below)
It is best to select all files, but if the network speed and memory are limited, as long as the SDK Platform, Samples for SDK under the corresponding API file, arm eabi v7a System Image (used to create simulators). Sources for Android SDK can also run project files. (Only one or both of the earlier versions can be used.) Click install packages after the selection, and select and accept the Protocol page. Then, the installation starts. Generally, it takes more than an hour to install it.
After installation, restart eclipse to create an android development project. (The simulator Android4.4.2 that I run successfully is shown below)
Attached to build to use the four compressed package Baidu cloud address: http://pan.baidu.com/s/1c1PvPss