Failed to fetch URL http://dl-ssl.google.com/android/eclipse/addon.xm

后端 未结 2 736
心在旅途
心在旅途 2021-01-24 21:14

I tried to ran sdk 32 BIT for andriod in windows 7 and I got error message Failed to fetch URL http://dl-ssl.google.com/android/eclipse/addon.xm reason: Unknown Host dl-

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-24 22:14

    I know that this applies to Android Studio and not Eclipse, but in case someone stumbles across it:

    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.

提交回复
热议问题