"Tools are good, its prerequisite." To learn Android well, it's a good start to build an Android development environment.
There are 4 major steps in the Android development environment under the Windows system. respectively:
Installation of 1.JDK
Installation of 2.eclipse
Installation of the 3.Android SDK
4.Android ADT Plug-in installation
--------------------------------------------------------------------------------------------------------------- -----------------------------
Installation of 1.JDK
1.1 Installing the JDK
There is no difference between installing a normal application.
1.2 Configuring environment variables
1) Create a new system environment variable java_home, which is the installation path of the JDK on your computer. Once created, you can use%java_home% as the unified reference path.
2) Modify the existing system environment variable PATH, the value is:;%java_home%\bin;%java_home%\jre\bin.
3) Create a new system environment variable CLASSPATHwith a value of:.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a dot ahead).
1.3 Verifying that the JDK is installed successfully
Run the following command from CMD:
1) Java-version will appear with Java version information.
2) Javac will appear with instructions on the Javac command.
If you execute the above two commands, the console has a corresponding expected output, and the JDK installation configuration is successful. If you execute the javac command prompt "Javac is not an internal command or external command, or a program or batch file that can be run," stating that the JDK is not installed correctly, you should try to reinstall the JDK again, paying particular attention to the configuration of the environment variables.
Installation of 2.eclipse
Eclipse is free to install software, that is to say, we download the Eclipse compact package, directly decompression can be used.
After decompression, the author appeared unable to download the JNI shared library problem:Failed to load the JNI library. The eclipse is found to be 32bit, and the JDK is 64bit, which is incompatible.
Workaround: The two digits are the same, either 32-bit or 64-bit.
Installation of the 3.Android SDK
In the Android SDK installation directory, double-click "SDK Manager.exe" to open the Android SDK Manager,android SDK Manage is responsible for downloading or updating different versions of the SDK package, we see the default installed Android SDK The manager installs only one version of SDK tools.
Open the Android SDK Manager, which will get an installable version of the SDK, but there are walls in the country, sometimes there will be a failure to obtain. "At the end of the article will be provided"
4. Installing the ADT plugin for Eclipse
4.1 Installing ADT Online
To launch Eclipse, click on the Help menu, Install New software ..., click Add ... in the popup dialog box. Button.
Then enter in the location in the popup dialog: Http://dl-ssl.google.com/android/eclipse/,Name can enter ADT and click "OK" button.
In the dialog box that pops up, select the tool you want to install, and the next step is ready.
The installation of the ADT plugin may take some time and wait patiently.
4.2 Installing ADT Offline
If you have a ready-made ADT package, you can install it offline, and of course, the next steps in the process need to be networked, but much faster.
Here's how:
1) Launch Eclipse, click on the Help menu, Install New software ...?, click Add in the Pop-up dialog box ... Button.
2) Click the "Archive" button in the pop-up dialog to find the location of ADT compression.
5. Documents
Maybe for many beginners, downloading to the right file is a very worrying thing, then, let's talk about how to download the above four parts.
5.1 JDK Download
It is recommended to download the JDK1.5 version above, and it is not recommended to download the JDK1.8 version, because the JDK1.8 version is not stable.
You can download http://www.oracle.com/technetwork/java/javase/downloads/index.html on the official website, select the corresponding version of your computer system.
5.2 Eclipse Download
Recommended to download http://www.eclipse.org/directly on the official website
5.3 Android SDK Download
If you cannot download the Android SDK by changing DNS, there are two more methods:
- The first one is to bring your own ladder. Fq on official website download: http://developer.android.com/sdk/index.html
- The second one is downloaded from this website and the download address is: http://www.androiddevtools.cn/
Download Notice : All the above downloads can be requested from the author. The author e-mail: [email protected].
Subsequent downloads will also be shared.
Android development environment built under Windows system