SDK Manager unable to fetch content - Connection to https://dl-ssl.google.com refused

懵懂的女人 提交于 2019-11-28 06:30:14

问题


My Android SDK manager starts and then tries to fetch new updates. But it can't fetch content and shows following error in log window:

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused

I am using windows 7 32-bit and working with Eclipse ADT.


回答1:


Solutions:

  1. Starting SDK manager as Administrator

  1. Starting android.bat from command-line.

  1. Updating Eclipse ADT from help/check for updates.

  1. Disabling windows firewall from Control Panel\System and Security\Windows Firewall\Customize Settings

  1. Clearing download catche from tools/options in SDK Manager.

  1. Adding Google's repository website in use-defined site from tools/Manage Add-on sites in SDK Manager.

  2. Forcing https// sources to be fetched using http:// in SDK Manager

  1. If any of above solution does not work then the last solution remained is to disable firewall of your antivirus.

Some antivirus packages like Avast contains their own firewalls that blocks fetching content in SDK manager. You must have to disable antivirus firewall from its settings.




回答2:


On Linux check that the cache directory exists:

mkdir -p ~/.android/cache

and that you have rights to it:

ls -ld ~/.android/cache/
drwxr-xr-x 2 YOU YOU 4096 lis 24 13:33 /home/YOU/.android/cache/


来源:https://stackoverflow.com/questions/27388746/sdk-manager-unable-to-fetch-content-connection-to-https-dl-ssl-google-com-re

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!