Android SDK Manager gives “Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml” error when selecting repository

前端 未结 17 1459
无人共我
无人共我 2020-11-29 06:01

I\'m trying to install a platform but when I open Android Manager then I click Available Software then select the https://dl-ssl.google.com/android/repository/repository.xml

相关标签:
17条回答
  • 2020-11-29 06:51

    I had the same problem: the latest update failed to install because it couldn't rename the tools folder in android-sdk-windows. I'm using AVG antivirus and disabling it didn't help, but I don't think it had anything to do with the AV program anyway.

    Fact is, running the Android SDK setup apparently uses items in the "android-sdk-windows\tools" directory. I'm on Win Vista x32 so maybe that causes some unique situation - I'm not sure.

    Solution:

    • I made a copy of the tools folder itself (keeping it at the same directory tree level, thus "tools" and "tools-copy" were both in the "android-sdk-windows" folder).

    • I ran Android.bat from that copy

    • I ran the update without problems (it updated the original, not-being-used-at-the-moment tools folder, among whatever other items it needed to).

    • I closed the SDK, deleted the folder (I had to kill the adb.exe process first - not sure why that always persists but you can't delete the folder without doing that).

    • I restarted the SDK from the normal (now-updated) tools folder. Worked like a charm!

    Note that simply killing adb.exe was NOT sufficient to get around the original issue... only by copying the tools folder and using the copy to run Android for the duration of the update process was enough to rectify the problem.

    I hope this helps others... it's quite vexing to have to spend time resolving basic issues like this just to run an update.

    0 讨论(0)
  • 2020-11-29 06:54

    Had the same issue on 64 bit win7 machine on company network behind proxy with automatically detected settings.

    After a number of trials and failures the following workaround proved to be successful:

    • sharing my phone's wifi internet connection via USB

    Best regards, Robert

    0 讨论(0)
  • 2020-11-29 06:55

    After 7 long hours of searching I finally found the way!! None of the above solutions worked, only one of them pointed towards the issue!

    If you are on Win7, then your Firewall blocks the SDK Manager from retrieving the addon list. You will have to add "android.bat" and "java.exe" to the trusted files and bingo! everything will start working!!

    0 讨论(0)
  • 2020-11-29 06:55

    I found another way without setting proxy. I'm currently using an antivirus which has a firewall program. Then, I turn off this firewall and now I can fetch that URL.

    If still doesn't work, try to turn off Firewall on your PC, such as Windows Firewall.

    0 讨论(0)
  • 2020-11-29 07:01

    Try this solution and it worked. this problem is caused because ADB is unable to connect to the android servers to fetch updates. (If at home try turning off firewall)

    • Goto Android SDK Manager c://android-sdk-windows/ open SDK-Manager
    • Click Settings - Will be asked for a proxy.
    • If have one enter the IP address and the port number. If not turn off your firewall.
    • Check "Force https://... " (to force SDK Manager to use http, not https)

    This should work immediately.

    0 讨论(0)
  • 2020-11-29 07:01

    I am using Kaspersky. I just turned it off and the issue was solved!

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