当前位置: 代码迷 >> Android >> android SDK Manager 上载失败
  详细解决方案

android SDK Manager 上载失败

热度:111   发布时间:2016-05-01 14:46:53.0
android SDK Manager 下载失败
如题,利用android SDK Manager 无法下载各个版本的SDK,是最近无法连接上谷歌的服务器吗?
我用了网上说的在C:\WINDOWS\system32\drivers\etc\hosts里加入了
#Google主页
203.208.46.146 www.google.com
#这行是为了方便打开Android开发官网 现在好像不VPN也可以打开
74.125.113.121 developer.android.com
#更新的内容从以下地址下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
这个内容,但是还是下载不了。
下载日志是这样的:
Downloading Documentation for Android SDK, API 16, revision 1
null
Downloading SDK Platform Android 4.1, API 16, revision 1
null
Downloading Samples for SDK API 16, revision 1
null
Downloading Sources for Android SDK, API 16, revision 1
null
Skipping 'ARM EABI v7a System Image, Android API 16, revision 1'; it depends on 'SDK Platform Android 4.1, API 16, revision 1' which was not installed.
Done. Nothing was installed.

------解决方案--------------------
网上有地址直接下SDK吧,
google的更新太慢太慢,,,,
------解决方案--------------------
首先,果断的将你在Hosts文件里面加的那些东西去掉,然后你可以试着考虑加上这一条:
203.208.46.180 google-developers.appspot.com

其次:
SDK Manager里面菜单 -> Tools -> Offcial Add-on Sites -> Enable All

SDK Manager里面菜单 -> Tools -> User Defined Sites 添加上:
http://android-misc-widgets.googlecode.com/svn/trunk/addon.xml
http://developer.android.com/sdk/index.html


发一个我的Log给你参考:
HTML code
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xmlValidate XMLParse XMLFetched Add-ons List successfullyFetching URL: http://dl-ssl.google.com/android/repository/repository-7.xmlValidate XML: http://dl-ssl.google.com/android/repository/repository-7.xmlParse XML:    http://dl-ssl.google.com/android/repository/repository-7.xml  Found SDK Platform Android 1.1, API 2, revision 1 (Obsolete)  Found SDK Platform Android 1.5, API 3, revision 4  Found SDK Platform Android 1.6, API 4, revision 3  Found SDK Platform Android 2.0, API 5, revision 1 (Obsolete)  Found SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)  Found SDK Platform Android 2.1, API 7, revision 3  Found SDK Platform Android 2.2, API 8, revision 3  Found SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)  Found SDK Platform Android 2.3.3, API 10, revision 2  Found SDK Platform Android 3.0, API 11, revision 2  Found SDK Platform Android 3.1, API 12, revision 3  Found SDK Platform Android 3.2, API 13, revision 1  Found SDK Platform Android 4.0, API 14, revision 3  Found SDK Platform Android 4.0.3, API 15, revision 3  Found SDK Platform Android 4.1, API 16, revision 2  Found ARM EABI v7a System Image, Android API 14, revision 2  Found ARM EABI v7a System Image, Android API 15, revision 2  Found ARM EABI v7a System Image, Android API 16, revision 2  Found Samples for SDK API 7, revision 1  Found Samples for SDK API 8, revision 1  Found Samples for SDK API 9, revision 1 (Obsolete)  Found Samples for SDK API 10, revision 1  Found Samples for SDK API 11, revision 1  Found Samples for SDK API 12, revision 1  Found Samples for SDK API 13, revision 1  Found Samples for SDK API 14, revision 2  Found Samples for SDK API 15, revision 2  Found Samples for SDK API 16, revision 1  Found Android SDK Platform-tools, revision 14  Found Android SDK Tools, revision 20.0.1  Found Documentation for Android SDK, API 16, revision 2  Found Sources for Android SDK, API 14, revision 1  Found Sources for Android SDK, API 15, revision 2  Found Sources for Android SDK, API 16, revision 2Fetching URL: http://dl-ssl.google.com/android/repository/addon.xmlValidate XML: http://dl-ssl.google.com/android/repository/addon.xmlParse XML:    http://dl-ssl.google.com/android/repository/addon.xml  Found Google APIs, Android API 3, revision 3  Found Google APIs, Android API 4, revision 2  Found Google APIs, Android API 5, revision 1 (Obsolete)  Found Google APIs, Android API 6, revision 1 (Obsolete)  Found Google APIs, Android API 7, revision 1  Found Google APIs, Android API 8, revision 2  Found Google APIs, Android API 9, revision 2 (Obsolete)  Found Google APIs, Android API 10, revision 2  Found Google APIs, Android API 11, revision 1  Found Google APIs, Android API 12, revision 1  Found Google APIs, Android API 13, revision 1  Found Google APIs, Android API 14, revision 2  Found Google APIs, Android API 15, revision 2  Found Google APIs, Android API 16, revision 2  Found Google TV Addon, Android API 12, revision 2  Found Android Support Library, revision 10  Found Google Play Licensing Library, revision 2  Found Google Play APK Expansion Library, revision 2  Found Google USB Driver, revision 6  Found Google Play Billing Library, revision 2  Found Google AdMob Ads SDK, revision 7  Found Google Analytics SDK, revision 2  Found Google Web Driver, revision 2  Found Google Cloud Messaging for Android Library, revision 3Fetching URL: http://dl.htcdev.com/sdk/addon.xmlFetching URL: http://software.intel.com/sites/landingpage/android/addon.xmlValidate XML: http://software.intel.com/sites/landingpage/android/addon.xmlParse XML:    http://software.intel.com/sites/landingpage/android/addon.xml  Found Intel Atom x86 System Image, Android API 10, revision 1  Found Intel Hardware Accelerated Execution Manager, revision 2Fetching URL: http://www.echobykyocera.com/download/echo_repository.xmlValidate XML: http://www.echobykyocera.com/download/echo_repository.xmlParse XML:    http://www.echobykyocera.com/download/echo_repository.xml  Found Dual Screen APIs, Android API 8, revision 1  Found Dual Screen APIs, Android API 10, revision 1Fetching URL: http://developer.lgmobile.com/sdk/android/repository.xmlValidate XML: http://developer.lgmobile.com/sdk/android/repository.xmlParse XML:    http://developer.lgmobile.com/sdk/android/repository.xml  Found Real3D, Android API 10, revision 2  Found Real3D, Android API 8, revision 1Fetching URL: http://android-sdk-addons.motodevupdate.com/addons.xmlValidate XML: http://android-sdk-addons.motodevupdate.com/addons.xmlParse XML:    http://android-sdk-addons.motodevupdate.com/addons.xml  Found ADMIRAL, Android API 10, revision 5  Found ATRIX2, Android API 10, revision 2  Found Droid4, Android API 10, revision 2  Found DroidRAZR, Android API 10, revision 5  Found ICS_R1, Android API 15, revision 3  Found ICS_R2, Android API 15, revision 2  Found MT917, Android API 10, revision 1  Found MotorolaPro+, Android API 10, revision 2  Found XOOM2, Android API 13, revision 2  Found XOOM2ME, Android API 13, revision 2  Found XT882, Android API 10, revision 2  Found XT928, Android API 10, revision 3  Found defy+, Android API 10, revision 1  Found Bionic, Android API 10, revision 2  Found MT870, Android API 10, revision 2  Found PHOTON, Android API 10, revision 1  Found XOOM, Android API 11, revision 2Fetching URL: http://innovator.samsungmobile.com/android/repository/repository.xmlValidate XML: http://innovator.samsungmobile.com/android/repository/repository.xmlParse XML:    http://innovator.samsungmobile.com/android/repository/repository.xml  Found GALAXY Tab, Android API 8, revision 1Fetching URL: http://developer.sonymobile.com/edk/android/repository.xmlValidate XML: http://developer.sonymobile.com/edk/android/repository.xmlParse XML:    http://developer.sonymobile.com/edk/android/repository.xml  Found Sony Xperia Extensions EDK 2.0, Android API 10, revision 2Fetching URL: http://dl-ssl.google.com/android/repository/sys-img.xmlValidate XML: http://dl-ssl.google.com/android/repository/sys-img.xmlParse XML:    http://dl-ssl.google.com/android/repository/sys-img.xml  Found Intel x86 Atom System Image, Android API 15, revision 1Fetching URL: http://android-misc-widgets.googlecode.com/svn/trunk/addon.xmlFetching URL: http://developer.android.com/sdk/index.htmlDone loading packages.Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xmlFetched Add-ons List successfullyFetching URL: http://dl.htcdev.com/sdk/addon.xmlValidate XML: http://dl.htcdev.com/sdk/addon.xmlParse XML:    http://dl.htcdev.com/sdk/addon.xml  Found HTC OpenSense SDK, Android API 15, revision 2Fetching URL: http://android-misc-widgets.googlecode.com/svn/trunk/addon.xmlFetching URL: http://developer.android.com/sdk/index.htmlDone loading packages.
  相关解决方案