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

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

    if you are using proxy server Open Eclipse Window ->Android SDK Manager ->tools-> Option Input your proxy server and port.

    you will find your proxy server and port if open internet explorer->internet option->connections->lan settings

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

    The reason sudo works on linux and Mac OS X is that sometimes the permisions in ~/.android get misconfigured. If you are having this problem over and over again, and you would rather not type sudo every time you want to update your sdk, go to ~/.android and ensure that your account owns and has permissions to read and write all the files.

    In my case I found that root owned several folders including the cache directory, cd ~/.android sudo chown -R <yourusername> * fixed the problem for me. If you are touchy about the security of your system, you can also specify a group like: sudo chown -R <yourusername>:<yourgroup> * AND

    you could also specify the individual files and directories that need to be changed if you don't like the wild card. sudo chown --R <yourusername> cache for instance.

    Thanks to the folks here for figuring it out.

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

    And one more...the only thing working for me here on Windows 10 inside vmWare:

    • Right click "This Computer"
    • "Properties"
    • "Extended system properties"
    • "Environment Variables"
    • Add a new key "ANDROID_SDK_HOME" and point it to "c:\users[username].android"
    0 讨论(0)
  • 2020-12-13 09:40

    I solved this issue by adding ipaddres of my server in to Http:Proxy server and port number 80 And Sdk got updated withing fraction of second.

    To get ip address of your proxy server Go to internet options Under connection tab > lan settings > check if Use automatic configuration script is checked> if its checked copy only ip address from address textbox and past it in Http:proxy server text box in sdk manager tools option :) .

    good luck Happy coading

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

    I had same issue (with exactly same error messages), Running tools/android.bat as Administrator resolved my problem ...

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

    I have solved this by:

    1. Giving full permissions to the sdk dir (Right Click->Properies->Security->Edit)
    2. Checking the "Force https to http" and clicking on "Clear Cache" in the "Options" dialog window
    0 讨论(0)
提交回复
热议问题