Android SDK Manager won't update: connection to https://dl-ssl.google.com refused

后端 未结 23 2332
后悔当初
后悔当初 2020-12-13 08:50

This is the same problem as a number of other have reported, e.g.

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

相关标签:
23条回答
  • 2020-12-13 09:25

    On linux, I got it working executing the Android SDK Manager with sudo(in your android-sdk-linux/tools folder)

    sudo ./android
    
    0 讨论(0)
  • 2020-12-13 09:25

    This is most likely because you are connected to the Internet via a proxy server.

    • Go to Tools>Options of the Android SDK Manager and set Http Proxy
      server and Http Proxy Port.

      • HttpPproxy server: add your proxy here

      • Http Proxy Port: add the port

    Restart SDK manager and try again.

    0 讨论(0)
  • 2020-12-13 09:25

    Clearing the cache worked for me.

    On the OS X version: Preferences... > Clear Cache

    0 讨论(0)
  • 2020-12-13 09:28

    In Android SDK Manager select

    Tools -> Options

    then check the box "Force https://... sources to be fetched using http://..."

    0 讨论(0)
  • 2020-12-13 09:29

    Use the ControlPanel applet in the java bin directory, (/usr/lib/jvm/jdk1.7.0/bin/ControlPanel) (change for your java version). In the Java Control Panel [General] TAB, Select the [Network Settings] button, Change the proxy settings from [Use browser settings] to [Direct connection]. (There are proxy settings in the Browser, Eclipse and the SDK which are all blank and only this java setting worked). Next in Android SDK tools dir, open the android shell script and towards the end of the file, find the line with:

    exec "$java_cmd" \

    and below this, insert the line

    -Djava.net.preferIPv4Stack=true \
    

    I have found that these 2 steps has fixed this for me using both ubuntu 12.04 64bit, java 1.7.0_21-b11 and ubuntu 12.04 32 bit, java 1.6.0_45.

    0 讨论(0)
  • 2020-12-13 09:32

    Sometimes this problem is created by the antivirus program installed in your system. Set the antivirus to "Disable until the computer is restarted" option. In my case, I had installed Avast antivirus. I disabled it by: right click avast in notification area >> Avast shields control >> Disable until computer is restarted.

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