Build an Android Application Development Environment in Windows-Eclipse/Android/ADT
Tian haili @ csdn
The Android Application Development Environment under window has been set up on my machine a long time ago. However, after a long time, I don't know where to put it, and the tools have basically been upgraded. I re-installed it again today and found that there are still some problems during the installation process, it is recorded here for future reference, and it also hopes to help others.
Download installation steps refer to: http://developer.android.com/sdk/installing.html
1. Prepare the tool
Download JDK
JDK 5.0 Update 22 (jdk-rj5_0_22-windows-i586-p.exe), or Java SE 6 Update 26 (jdk-6u26-windows-i586.exe)
Download Eclipse IDE
Download the package at http://www.eclipse.org/downloads. I am using the eclipse 3.6 (Helios) for Java developer eclipse-java-helios-SR2-win32.zip.
Note]The latest version of eclipse 3.7 (indigo) cannot install ADT. Some plug-ins required by ADT are missing. Do not download and use them.
Download Android SDK tools
Download the SDK at http://developer.android.com/sdk/index.html. Note that the download here is not an SDK, but an SDK manager or an android SDK and AVD manager.
I downloaded android-sdk_r12-windows.zip.
2. Install tools
2.1 JDK
If JDK is not installed, run the jdk-rj5_0_22-windows-i586-p.exe file directly.
Select the path in the middle. For example, select JDK in D: \ sun \ Java \ jdk1.5.0 _ 22 and select JRE to D: \ sun \ Java \ jre1.5.0 _ 22.
2.2 eclipse
Except for special installation, You can decompress eclipse-java-helios-sr2-win32.zip.
3. Download the android SDK platforms
Decompress android-sdk_r12-windows.zip. The directory structure on the file system is as follows:
Add-ons \ and platforms are empty. Only tools \ has content. That is to say, only SDK tools is downloaded.
Run Android-SDK-Windows \ SDK manager.exe. In the open Android SDK and AVD manager, the packages installed on your local machine or the AVD search you have created will be displayed. In addition, the available installation packages are also retrieved from the Internet. (If the network connection fails, you can check force https: //... sources to be fetched from http: //... in settings ://...)
In available packages, open Android repository and check the package you want to install (platform-tools is required ).
Click Install selected to download and install. In the middle, you may be prompted to confirm the license and so on, simply accept it.
After downloading, you can see the following in Android SDK and AVD Manager:
In addition, the android-SDK-Windows \ platforms folder can also be seen with more content. These are the results of the execution.
In fact, it corresponds to the packages downloaded and installed just now:
Android-sdk-windows\tools\ Android SDK ToolsAndroid-sdk-windows\platform-tools \ Android SDK platform-toolsAndroid-sdk-windows\docs\ Documentation for Android SDKAndroid-sdk-windows\platform\ android-8\ SDK Platform Android 2.2, API 8, revision 2 android-13\ SDK Platform Android 3.2, API 13, revision 1Android-sdk-windows\samples\ android-8\ Samples for SDK API 8, revision 1 android-13\ Samples for SDK API 13, revision 1
4. Eclipse configuration and eclipseadt download
After extracting the eclipse SDK, run the eclipse-java-helios-SR2-win32 \ eclipse \ eclipse.exe.
Configure JRE
Execute the menu window> preferences; open Java> installed jres; click Search... Specifies the Java path to be installed in 2.1.
Download and install ADT
Execute the menu help> install new software ...; Click Add ...; Add http://dl-ssl.google.com/android/eclipse/to repository.
Select Developer Tools (that is, ddms/development tools/hierarchy view/Trace view is selected), and then click button "next>" to start downloading.
After the download is complete, restart eclipse.
Configure ADT
Run the menu window> preferences; open Android, and Click Browse In SDK location. Select Android-SDK-Windows, the root directory of SDK in section 3.
5. Verification-go to the Android world helloandroid
5.1 create an AVD
In eclipse, use the menu or run Android-SDK-Windows \ SDK manager.exe directly.
In virtual devices, click New ..., Create an AVD, as shown in
5.2 create helloandroid
Create a project and execute the menu File> New> project...
Choose Android> Android project and click Next.
In the pop-up form, set the following attributes:
Project name: helloandroid; build target: Select Android 2.2; Application name: Hello, Android; package name: COM. Android. testcreate activity: helloandroid
Click Finish.
5.3 run
In the package view, select the helloandroid project and right-click the project and choose run as> Android Application.
Now, the world of Android is calling you.
[Error fixing]
Error generating final archive: Debug certificate expired on...
Solution: Delete the old files under c: \ Documents and Settings \ hailitian \. Android \ (generated after Android is installed): Debug. keystore, ddms. cfg, and default. keyset.
************* ****************