1. SDK Installation
1. Download the SDK
Remove http://www.android.com/labels (marked in the figure ).
2. Install the corresponding package for SDK Development
After running the SDK, the SDK manager is installed. After the SDK manager is started, it will go to the android repository to obtain information about the packages that have not been installed. For example, (because my system has been installed, therefore, the front of each package is green.) to be lazy, I directly Select accept all and install all the packages. in fact, if you know more about the entire android system, you can choose to install only what you need.
3. Add the directory of Android-related tools to the path value of the system environment variable.
After the corresponding packages are installed, add "C: \ Program Files \ Android-SDK \ tools" to the path value in the system environment variables, if your android is installed elsewhere, you can add the corresponding directory to the path value similarly.
Run echo % PATH % in cmd (in fact, directly running path also has the same result), for example:
20110809 Add the Android-SDK \ platform-tools directory to the path. The platform-tools directory contains the ADB program. enter adbshell to clear the application previously installed on the virtual device.
The result indicates that the program required for Android Runtime is successfully added to the PATH environment variable. if the android tools directory value is not added to the path, you need to refer to how to set java_home and add java_home to the path value.
Ii. install and configure ADT
1. Install
ADT is a plug-in of Eclipse, just like CDT and jdt. to develop an android program, you must have at least one CDE (integrated development environment ). android officially recommends eclipse. in addition, an ADT plug-in is prepared for Android development in eclipse. with this plug-in, you can easily develop Android programs.
Install ADT, which means you have to prepare an eclipse first, because I used to develop J2EE for a while and prepared Helios (3.6) J2EE version:
Android 3.4 eclipse does not support the latest ADT. It must be 3.5 or later.
Click "help" in the eclipse menu and select "install new software ..."
In the pop-up window, enter the URL:
https://dl-ssl.google.com/android/eclipse/
If the network is faulty, you can change the ADT installation URL:
http://dl-ssl.google.com/android/eclipse/
Next, it is similar to installing other Eclipse plug-ins.
2. ADT Configuration
Click the window in the eclipse menu and select "preferences...". In the pop-up window, select the android SDK installation location and apply other configuration items such as build and ddms.
3. Create an android VM
Click the eclipse menu window and select "android SDK and AVD manager" to create an android virtual device. In this way, the android application we created later runs on the virtual device.
Now, the android development environment is basically configured (JDK configuration is required). To verify the configuration, you can write a helloworld program.