Android > Unknown Host Errors while installing ADT plugin in eclipse

时光怂恿深爱的人放手 提交于 2019-11-30 18:41:29

问题


I am trying to setup development environment for Android development. While adding Android ADT plugin in eclipse, I get following error:

Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Unknown Host dl-ssl.google.com Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: dl-ssl.google.com Done loading packages.

Could someone guide me easily that how to get rid of this error?


回答1:


I had the same problem.
In the Tools>Options menu in Android SDK Manager, I set the HTTP Proxy Server and HTTP Proxy Port values (I used the same settings that for my internet browser).
That fixed the problem for me !




回答2:


In the Tools>Options menu check the option

Force https://... sources to be fetched using http://




回答3:


You may be having the problem cause you are on a network where Proxy server and proxy ports are used for intercommunication between devices. Set the appropriate proxy server and port number in Tools -> Options. If its still not working then go for Force https://... sources to be fetched using http://




回答4:


Try manually downloading the platform from here: http://sochinda.wordpress.com/2011/04/28/step-by-step-guide-on-how-to-install-android-sdk-offline-not-completely-offline/

Choose the version you want, download and extract into platform-tools!




回答5:


I was also getting same error:

Unknown Host Errors while installing ADT plugin in eclipse

Go to Setting -> Default setting -> select "Android SDK" from left side Panel. Select required components Which you want to install. - >Apply -> Ok.



来源:https://stackoverflow.com/questions/9015446/android-unknown-host-errors-while-installing-adt-plugin-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!