Recently, I set up an android Development Environment on my computer, wrote down my operation process, and shared it with you.
1. Download and install jdk1.6: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html,
After downloading the file, you can install it directly. The file size is less than 100 mb. It should be fast.
2. download the latest version of Eclipse: http://www.eclipse.org/downloads/. you can select 32-bit or 64-bit versions to download the latest version of the operating system installed on your machine.
Version 3.6.2 does not need to be installed after eclipse is downloaded. You can use it directly after decompression.
3. Configure Java environment variables
My computer (right-click) ---> properties ---> advanced ---> environment variable, locate a variable named path in the system variable, select edit, copy the bin directory after JDK installation and paste it in
The end of the variable value (for example, D: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin ),Note: Before pasting, add a semicolon (;),Click OK after completion (this is completely nonsense ),
Then, select "new" in the system variable, enter the variable name: classpath, and enter the variable value:. (English period). After the configuration is complete, confirm and exit.
4. Check whether Java environment variables are configured successfully.
"Start" ---> "run" ---> Enter cmd ---> enter "Java-version" in the Command Prompt window (note that there is a space in the middle). Press enter after the input is complete, if the following information appears
It indicates that your JDK has been installed successfully and the environment variables have been configured successfully.
5. Download the android SDK. Because the Google website has been forced down, you can go over the wall to download the SDK. In fact, you can find it in Baidu search. Let's do it on your own.
This is just an online Installation tool provided by Google, so it is not large. I have about 30 mb. After downloading it, decompress it to the directory where you want to install the android SDK, after decompression,
The Android-SDK-Windows directory contains the following content:
Double-click SDK manager.exe:
Choose packages to install will appear later. If your network is good, you can select accept all and click Install to install the android SDK online.
It will be very, very long. You can install it when you go to bed at night. It's almost like waking up ......
6. Download The Eclipse plug-in ADT provided by Google:
Open eclipse. When eclipse is started for the first time, you will be asked to select the workspace. After selecting it, OK,
"Help" ---> "install new software", an install window appears, enter: https://dl-ssl.google.com/android/eclipse/ in "Work"
Press enter. Wait a moment and you will find the developer tools, all selected. Follow the prompts to "Next" to complete the installation. After installation, an android program will be added to the shortcut menu of the eclipse toolbar.
The robot icon. When you click this icon, an error will be reported during the first click. At this time, you need to select "android" in the displayed dialog box in "window" ---> "perferences ",
In "SDK location", enter the installation directory of the android SDK (for example, D: \ Program Files \ Android-SDK-windows ). Select "OK" and click the robot icon again.
No error will be reported. In this case, you need to create a virtual device and select "Virtual Devices" ---> "new"
Enter the name of your VM (simulator) in name, for example, Android-2.2. Target selects "Android 2.2-API Level 8" corresponding to the version ", SD card size: Enter MB.
Now, you can decide based on your own needs. You can select hcga for "built in" in skin, and then select "create AVD" after completing the above operations. In this way, the virtual machine is created successfully and is returned to the previous interface.
Select a virtual machine, click "start", and select "launch" to start the android virtual machine. The process may take a long time. Please wait patiently for 2 minutes. The
As follows:
After the installation is complete, you can find the help documentation for androiddevelopment in the docsdirectory, and open index.html to view it. Of course, you 'd better download the jdk1.6 api reference manual.
Necessary, Baidu a search, also can go to the http://erbo2008.iteye.com/blog/553015 to see.
Now, the android SDK for Windows has been set up. You can try your own Android journey. It is not easy to write. I hope you can give more comments!