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

后端 未结 2 737
心在旅途
心在旅途 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 21:55

    I had the same issue before. You can download a zip file of the components you need and manually install them in Eclipse. Follow this link - https://developer.android.com/sdk/installing/installing-adt.html#Troubleshooting

    0 讨论(0)
  • 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.

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