The configuration of the android development environment is a very old topic, but I forgot it when I went to configure it a few days ago. So I wrote this blog to record it so that I could review it later and increase my impression. In fact, I can repost other people's articles. However, I still like it.
I. Required Software
Eclipse Standard:
Http://www.eclipse.org/downloads/
SDK:
Http://developer.android.com/sdk/index.html
2. Installation Steps
1. Decompress Elipse and use it directly.
2. Download ADT
Eclipse-help-Install New Software...
Work with fill: http://dl-ssl.google.com/android/eclipse/
Press enter to view the download list,
(If the download fails, refer to the final description)
After the installation is successful, the toolbar provides Android options and windows-preperences.
3. Install the SDK
Decompress the package and open SDK Manager.exe to download the Development Library (the last description of the download failure)
Automatically download and install the SDK, and then try to enable the android simulator. Open AVD Manager.exe In the SDK directory and configure it as follows:
Click Start to enable the simulator. If the simulator is enabled properly, the SDK is installed properly. (Okay, nonsense)
3. Final Configuration
Elipse-windows-preperence-android, fill in the SDK extraction Directory In SDK Location
4. Create and run a project
Eclipse-File-new-project
Continue to the next step. The specific configuration is not described here.
Run: Right-click Project-Run as-Android Application
Note:
If the download is slow, times out, the download fails, prompting Failed to fectch URl https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com refused,
It may be a network problem, because the server is Google, you know. The solution is as follows:
Open the hosts file in C: \ WINDOWS \ system32 \ drivers \ etc
Add the 74.125.237.1 dl-ssl.google.com to the last line
The problem is resolved successfully.
Well, that's almost the case. If there are any errors, I hope you can correct them. If you have any questions, please leave a message. :)