When configuring the Android development environment, there is a problem that eclipse cannot obtain ADT
This example describes the solution that eclipse cannot obtain ADT when configuring Android development environment. Share with you for your reference, as follows:
After installing the Android SDK, eclipse needs to get ADT, but due to the existence of GFW, eclipse often cannot get ADT from http://dl-ssl.google.com/android/eclipse Get anything. Solutions are provided below:
In the past, installing ADT was not a problem at all, but now it is a big problem. China Unicom's broadband network can't even open www.google.com.hk. How do you tell us P people to live?
whether https://dl-ssl.google.com/android/eclipse still http://dl-ssl.google.com/android/eclipse If you can't access them normally, you will be prompted Android ADT unable to connect to repository http://dl-ssl.google.com/android/eclipse/content.xml
At first, I thought it was the eclipse version that couldn't adapt to the new ADT version. After trying several versions, I found that it wasn't at all.
Obviously, if the domestic network harmonizes the Google server, it can be forced to point to the following hosts. The following is the added content:
Directory: find the hosts file under C: \ windows \ system32 \ drivers \ etc, which is actually a plain text file
1. Open with Notepad
2. Add: 74.125.237.1 dl-ssl.google.com to the last line of the hosts file
3. Save, close hosts, and restart eclipse
4. Start eclipse, click the menu to enter help - > install new software, click the Add button in the window that appears, and then enter your customized name in name and in location:
https://dl-ssl.google.com/android/eclipse
that will do
I hope this article will help you in Android programming.