Note: This article briefly describes the establishment of the android application development environment. If there is an incorrect or not perfect place, welcome to the brick leave a message or mail to the guopeixin@126.com for discussion, thank you first.
I. Preparations... 2
Ii. Installation Steps... 2
1. Install jdk5.0.2
2. Configure eclipse and install ADT. 3
3. Configure SDK... 4
4. Create AVD... 5
3. My first Android program... 6
You need to prepare the following installation programs:
Jdk5.0
Eclipse
ADT
Android SDK
Can be downloaded from the Internet for free
Install jdk5.0
Click java_ee_sdk-5_01-windows.exe and follow the Wizard to install it.
After successful installation, add the path of javaw.exe to the environment variable path. Right-click my computer and select Properties, advanced | environment variable. The following dialog box is displayed:
Select the path C:/Sun/SDK/JDK/bin for pathand export javaw.exe, which is used when eclipse starts to search for Java virtual machine.
Configure eclipse and install ADT
After the eclipseprogram is decompressed, run eclipse.exe in the root directory, and select help | Software Update under the menu (for different eclipse versions, the names may vary, but the names are similar). The following window is displayed:
Select Add to see the following window. Click archive and select ADT to compress the file. Then, select OK to view the Developer Tools list, as shown in:
Check Android ddms (Dalvik debug monitor service) and Android development tools, and select next for installation. This process may last for a long time. The following window is displayed after the installation is complete:
Select next and agree to the installation protocol. The following installation window is displayed:
Wait until the installation is complete.
Note:
For offline installation of ADTMake sure that the check boxes marked in red are deselected.
Configure SDK
No matter how many sdks are used, install android-sdk_r05-windows.zip first. It is similar to a basic SDK or a manager that thinks it is an SDK. Next, add the complete path of the Tools Folder to the environment variable path (note the method and format of adding environment variables, and restart the computer after modifying the environment variables ).
Decompress android-sdk_r05-windows.zip to the specified directory and run "SDK setup.exe" under the directory to upgrade the SDK to the specified version. If you use offline upgrade, you can download the SDK of the specified version and decompress it to platforms under the same directory of "SDK setup.exe.
Go to the command line window and run Android-H. If the following information is displayed, the SDK is successfully installed:
Note:
The downloaded SDK must beDecompress the package to platforms.Under the root directory, like platforms/android-2.2_r01-windows, Cannot exist platforms/android-2.2_r01-windows/android-2.2_r01-windows.
Create AVD
To enable Android applications to run on simulators, AVD must be created. In general, AVD means Android Virtual Devices.
The method is as follows:
In the eclipse window, select windows | Android SDK and AVD manager. The following window is displayed:
Select virtual devices on the left and new on the right. In the pop-up configuration window, make the following options:
After the configuration is complete, click Create AVD. Wait for a while. If the configuration is successfully created, the following prompt window is displayed:
Program
Haha, I finally saw the hello World Program !!!
(End)