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

后端 未结 2 1056
-上瘾入骨i
-上瘾入骨i 2020-12-20 06:35

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 fet

相关标签:
2条回答
  • 2020-12-20 06:47

    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/
    
    0 讨论(0)
  • 2020-12-20 06:54

    Solutions:

    1. Starting SDK manager as Administrator

    enter image description here

    1. Starting android.bat from command-line.

    enter image description here

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

    enter image description here

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

    enter image description here

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

    enter image description here

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

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

    enter image description here

    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.

    0 讨论(0)
提交回复
热议问题