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

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

提交回复
热议问题