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.
============解决方案1============
网上有地址直接下SDK吧,
google的更新太慢太慢,,,,
============解决方案2============
首先,果断的将你在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给你参考:
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml Validate XML Parse XML Fetched Add-ons List successfully Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml Validate XML: http://dl-ssl.google.com/android/repository/repository-7.xml Parse 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 2 Fetching URL: http://dl-ssl.google.com/android/repository/addon.xml Validate XML: http://dl-ssl.google.com/android/repository/addon.xml Parse 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 3 Fetching URL: http://dl.htcdev.com/sdk/addon.xml Fetching URL: http://software.intel.com/sites/landingpage/android/addon.xml Validate XML: http://software.intel.com/sites/landingpage/android/addon.xml Parse 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 2 Fetching URL: http://www.echobykyocera.com/download/echo_repository.xml Validate XML: http://www.echobykyocera.com/download/echo_repository.xml Parse 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 1 Fetching URL: http://developer.lgmobile.com/sdk/android/repository.xml Validate XML: http://developer.lgmobile.com/sdk/android/repository.xml Parse XML: http://developer.lgmobile.com/sdk/android/repository.xml Found Real3D, Android API 10, revision 2 Found Real3D, Android API 8, revision 1 Fetching URL: http://android-sdk-addons.motodevupdate.com/addons.xml Validate XML: http://android-sdk-addons.motodevupdate.com/addons.xml Parse 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 2 Fetching URL: http://innovator.samsungmobile.com/android/repository/repository.xml Validate XML: http://innovator.samsungmobile.com/android/repository/repository.xml Parse XML: http://innovator.samsungmobile.com/android/repository/repository.xml Found GALAXY Tab, Android API 8, revision 1 Fetching URL: http://developer.sonymobile.com/edk/android/repository.xml Validate XML: http://developer.sonymobile.com/edk/android/repository.xml Parse XML: http://developer.sonymobile.com/edk/android/repository.xml Found Sony Xperia Extensions EDK 2.0, Android API 10, revision 2 Fetching URL: http://dl-ssl.google.com/android/repository/sys-img.xml Validate XML: http://dl-ssl.google.com/android/repository/sys-img.xml Parse XML: http://dl-ssl.google.com/android/repository/sys-img.xml Found Intel x86 Atom System Image, Android API 15, revision 1 Fetching URL: http://android-misc-widgets.googlecode.com/svn/trunk/addon.xml Fetching URL: http://developer.android.com/sdk/index.html Done loading packages. Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml Fetched Add-ons List successfully Fetching URL: http://dl.htcdev.com/sdk/addon.xml Validate XML: http://dl.htcdev.com/sdk/addon.xml Parse XML: http://dl.htcdev.com/sdk/addon.xml Found HTC OpenSense SDK, Android API 15, revision 2 Fetching URL: http://android-misc-widgets.googlecode.com/svn/trunk/addon.xml Fetching URL: http://developer.android.com/sdk/index.html Done loading packages.
============解决方案3============
安装SDK的时候确实需要网络环境比较好。不然的话下载很慢而且会有错误出现的。。。建议换一个好一点的网络环境,下载速度至少能够达到300K的那种,带宽在3M左右的。。
============解决方案4============
可以的,你百度下 离线安装SDK ,有很多地址的,
你想下载哪个SDK 1.6 2.2 4.1都有,直接下载就行,
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。