SoFunction
Updated on 2025-04-11

Android SDK Manager cannot update problem solution

Android SDK Manager cannot update problem solution

I have been playing with ubuntu system recently. The SDK file downloaded under Windows was no longer available, so I could only download it again. After installing the Eclipse and ADT plug-ins, I found that the SDK could not be updated, and it was shown as:

Fetching /android/repository/addons_list 
Failed to fetch URL /android/repository/addons_list, reason: Connection to  refused 
Fetched Add-ons List successfully 
Fetching URL: /android/repository/ 

Eclipse output error

reason: Connection to refused

I guess this is another credit to the great GFW. We just need to configure the hosts file and add the following sentence at the end of the file:
74.125.237.1

The location of the hosts file in the Windows system is: C:\Windows\system32\drivers\etc. Found the file and opened in text. Add the above sentence, close it after saving, restart Eclipse and open Android SDK Manager. OK!

The location of the Ubuntu system hosts file is: /etc/hosts, you can use the command:

sudo gedit /etc/hostsEdit this file

Thank you for reading, I hope it can help you. Thank you for your support for this site!