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

后端 未结 23 2393
后悔当初
后悔当初 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: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.

提交回复
热议问题