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

前端 未结 17 1457
无人共我
无人共我 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:44

    In Mac OS X, the solution is creating the file androidtool.cfg in our user .android folder and then add this line. Sure it is working also for Linux

    sdkman.force.http=true

    I hope that helps!

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

    If you enter the URL in a browser and then look at the source code of the page you will see that an XML document is returned.

    The reason why that URL would work in a browser but not in the android manager might be that you are required to specify a proxy server. In Eclipse (3.5.2) the proxy settings can be found here: "Window" -> "Preferences" -> "General" -> "Network Connections"

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

    Also, try to turn off your firewall and try to update with link.

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

    I had a similar situation where I had the proxy settings already set and the SDK manager wasn't able to modify them permanently. Modifying manually the ~/.android/androidtool.cfg file fixed the issue.

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

    I got the solution for the Android Studio installation after trying everything that I could find on the Internet. If you're using Android Studio and getting this error:

    Find [Path_to_Android_SDK]\sdk\tools\android.bat. In my case, it was in C:\Users\Nathan\AppData\Local\Android\android-studio\sdk\tools\android.bat.

    Right-click it, hit Edit, and scroll all the way down to the bottom.

    Find where it says: call %java_exe% %REMOTE_DEBUG% ...

    Replace that with call %java_exe% -Djava.net.preferIPv4Stack=true %REMOTE_DEBUG% ...

    Restart Android Studio/SDK and everything works. This fixed many issues for me, including being unable to fetch XML files or create new projects.

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

    If you open /Users/{your name}/android sdks/tools/android (double click it), then click on "Android SDK Manager" menu and then "Preferences" and then you can change your proxy settings specifically for Android SDK Manager. These proxy settings also apply to "Android SDK Manager" if used within Eclipse.

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