热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

关于AndroidSDK无法更新的解决办法

关于AndroidSD

最新摆弄PhoneGap打包,所以需要安卓的环境,配置后,sdk更新实在是在慢了,上网找了一下,可能被强了,所有总结如下办法,最后弄好了,跟大家分享一下

 

具体步骤:
1:打开SDK Manager.exe
2:选择Tools-Optins,将【Force https:// ...】打勾

3:最后更新下自己的HOSTS文件,Host文件位置,以win7
64位系统为例:C:\Windows\System32\drivers\etc

可在HOSTS文件加入如下内容,以后访问谷歌等网站方便一些

 




[plain] view plaincopybubuko.com,布布扣 >bubuko.com,布布扣 >
 


  1. class="alt">127.0.0.1 localhost  

  2. #Google Service  

  3. #Chrome 网上应用  

  4. 203.208.46.146 chrome.google.com  

  5. class="alt">203.208.46.146 clients0.google.com  

  6. 203.208.46.146 clients1.google.com  

  7. class="alt">203.208.46.146 clients2.google.com  

  8. 203.208.46.146 clients3.google.com  

  9. class="alt">203.208.46.146 clients4.google.com  

  10. 203.208.46.146 www.googleusercontent.com  

  11. class="alt">203.208.46.146 lh0.googleusercontent.com  

  12. 203.208.46.146 lh1.googleusercontent.com  

  13. class="alt">203.208.46.146 lh2.googleusercontent.com  

  14. 203.208.46.146 lh3.googleusercontent.com  

  15. class="alt">203.208.46.146 lh4.googleusercontent.com  

  16. 203.208.46.146 lh5.googleusercontent.com  

  17. class="alt">203.208.46.146 lh6.googleusercontent.com  

  18. 203.208.46.146 clients1.googleusercontent.com  

  19. class="alt">203.208.46.146 clients2.googleusercontent.com  

  20.   

  21. #网页快照  

  22. 203.208.46.146 webcache.googleusercontent.com  

  23.   

  24. #Google SSL  

  25. class="alt">203.208.46.146 encrypted.google.com  

  26. 203.208.46.146 encrypted.google.com.hk  

  27.   

  28. #Google Docs  

  29. class="alt">203.208.46.146 docs.google.com  

  30. 203.208.46.146 docs0.google.com  

  31. class="alt">203.208.46.146 docs1.google.com  

  32. 203.208.46.146 docs2.google.com  

  33. class="alt">203.208.46.146 docs3.google.com  

  34. 203.208.46.146 spreadsheets.google.com  

  35. class="alt">203.208.46.146 spreadsheets0.google.com  

  36. 203.208.46.146 spreadsheets1.google.com  

  37. class="alt">203.208.46.146 spreadsheets2.google.com  

  38. 203.208.46.146 spreadsheets3.google.com  

  39.   

  40. #Gmail  

  41. class="alt">203.208.46.146 mail.google.com  

  42. 203.208.46.146 chatenabled.mail.google.com #Gmail中Gtalk聊天服务  

  43.   

  44. #Google 搜索  

  45. class="alt">203.208.46.146 www.google.com  

  46.   

  47. #Google preview  

  48. 203.208.46.146 www.googlepreview.com  

  49.   

  50. #Google 翻译  

  51. class="alt">203.208.46.146 translate.google.com  

  52. 203.208.46.146 translate.googleapis.com  

  53.   

  54. #Google 搜索建议(IE9)  

  55. class="alt">203.208.46.146 clients5.google.com  

  56.   

  57. #Google Code  

  58. 203.208.46.146 code.google.com  

  59.   

  60. #Picasa 网络相册  

  61. class="alt">203.208.46.146 picasaweb.google.com  

  62. 203.208.46.146 lh0.ggpht.com  

  63. class="alt">203.208.46.146 lh1.ggpht.com  

  64. 203.208.46.146 lh2.ggpht.com  

  65. class="alt">203.208.46.146 lh3.ggpht.com  

  66. 203.208.46.146 lh4.ggpht.com  

  67. class="alt">203.208.46.146 lh5.ggpht.com  

  68. 203.208.46.146 lh6.ggpht.com  

  69. class="alt">203.208.46.146 lh7.ggpht.com  

  70. 203.208.46.146 lh8.ggpht.com  

  71. class="alt">203.208.46.146 lh8.ggpht.com  

  72. 203.208.46.146 lh9.ggpht.com  

  73. class="alt">203.208.46.146 lh6.google.com  

  74.   

  75. #Google 个人资料  

  76. 203.208.46.146 profiles.google.com  

  77. class="alt">203.208.46.146 browsersync.google.com  

  78.   

  79. #Google+  

  80. 203.208.46.146 talkgadget.google.com #Google+中的聊天服务  

  81. class="alt">203.208.46.146 ssl.gstatic.com  

  82. 203.208.46.146 images-pos-opensocial.googleusercontent.com  

  83. class="alt">203.208.46.146 images1-focus-opensocial.googleusercontent.com  

  84. 203.208.46.146 images2-focus-opensocial.googleusercontent.com  

  85. class="alt">203.208.46.146 images3-focus-opensocial.googleusercontent.com  

  86. 203.208.46.146 images4-focus-opensocial.googleusercontent.com  

  87. class="alt">203.208.46.146 images5-focus-opensocial.googleusercontent.com  

  88. 203.208.46.146 images6-focus-opensocial.googleusercontent.com  

  89. class="alt">203.208.46.146 plus.google.com  

  90.   

  91. #Download 下载  

  92. 203.208.46.146 dl.google.com  

  93. class="alt">203.208.46.146 dl-ssl.google.com  

  94.   

  95. #Groups  

  96. 203.208.46.146 groups.google.com  

  97.   

  98. #Google URL Shortener  

  99. 203.208.46.146 goo.gl  

  100.   

  101. #Google App Engine  

  102. 203.208.46.146 appengine.google.com  

  103.   

  104. #Android Developer  

  105. class="alt">74.125.113.121 developer.android.com  


最后,在win7中,你修改后可能告诉你管理权限不够,没关系,将Hosts文件复制到其他地方修改,最后在覆盖它,就大功告成了


推荐阅读
  • 本文介绍了OC学习笔记中的@property和@synthesize,包括属性的定义和合成的使用方法。通过示例代码详细讲解了@property和@synthesize的作用和用法。 ... [详细]
  • 基于layUI的图片上传前预览功能的2种实现方式
    本文介绍了基于layUI的图片上传前预览功能的两种实现方式:一种是使用blob+FileReader,另一种是使用layUI自带的参数。通过选择文件后点击文件名,在页面中间弹窗内预览图片。其中,layUI自带的参数实现了图片预览功能。该功能依赖于layUI的上传模块,并使用了blob和FileReader来读取本地文件并获取图像的base64编码。点击文件名时会执行See()函数。摘要长度为169字。 ... [详细]
  • HDU 2372 El Dorado(DP)的最长上升子序列长度求解方法
    本文介绍了解决HDU 2372 El Dorado问题的一种动态规划方法,通过循环k的方式求解最长上升子序列的长度。具体实现过程包括初始化dp数组、读取数列、计算最长上升子序列长度等步骤。 ... [详细]
  • Mac OS 升级到11.2.2 Eclipse打不开了,报错Failed to create the Java Virtual Machine
    本文介绍了在Mac OS升级到11.2.2版本后,使用Eclipse打开时出现报错Failed to create the Java Virtual Machine的问题,并提供了解决方法。 ... [详细]
  • 本文内容为asp.net微信公众平台开发的目录汇总,包括数据库设计、多层架构框架搭建和入口实现、微信消息封装及反射赋值、关注事件、用户记录、回复文本消息、图文消息、服务搭建(接入)、自定义菜单等。同时提供了示例代码和相关的后台管理功能。内容涵盖了多个方面,适合综合运用。 ... [详细]
  • 本文讨论了Alink回归预测的不完善问题,指出目前主要针对Python做案例,对其他语言支持不足。同时介绍了pom.xml文件的基本结构和使用方法,以及Maven的相关知识。最后,对Alink回归预测的未来发展提出了期待。 ... [详细]
  • 本文讲述了作者通过点火测试男友的性格和承受能力,以考验婚姻问题。作者故意不安慰男友并再次点火,观察他的反应。这个行为是善意的玩人,旨在了解男友的性格和避免婚姻问题。 ... [详细]
  • 1,关于死锁的理解死锁,我们可以简单的理解为是两个线程同时使用同一资源,两个线程又得不到相应的资源而造成永无相互等待的情况。 2,模拟死锁背景介绍:我们创建一个朋友 ... [详细]
  • 后台获取视图对应的字符串
    1.帮助类后台获取视图对应的字符串publicclassViewHelper{将View输出为字符串(注:不会执行对应的ac ... [详细]
  • 《数据结构》学习笔记3——串匹配算法性能评估
    本文主要讨论串匹配算法的性能评估,包括模式匹配、字符种类数量、算法复杂度等内容。通过借助C++中的头文件和库,可以实现对串的匹配操作。其中蛮力算法的复杂度为O(m*n),通过随机取出长度为m的子串作为模式P,在文本T中进行匹配,统计平均复杂度。对于成功和失败的匹配分别进行测试,分析其平均复杂度。详情请参考相关学习资源。 ... [详细]
  • 动态规划算法的基本步骤及最长递增子序列问题详解
    本文详细介绍了动态规划算法的基本步骤,包括划分阶段、选择状态、决策和状态转移方程,并以最长递增子序列问题为例进行了详细解析。动态规划算法的有效性依赖于问题本身所具有的最优子结构性质和子问题重叠性质。通过将子问题的解保存在一个表中,在以后尽可能多地利用这些子问题的解,从而提高算法的效率。 ... [详细]
  • Java验证码——kaptcha的使用配置及样式
    本文介绍了如何使用kaptcha库来实现Java验证码的配置和样式设置,包括pom.xml的依赖配置和web.xml中servlet的配置。 ... [详细]
  • 高质量SQL书写的30条建议
    本文提供了30条关于优化SQL的建议,包括避免使用select *,使用具体字段,以及使用limit 1等。这些建议是基于实际开发经验总结出来的,旨在帮助读者优化SQL查询。 ... [详细]
  • 在project.properties添加#Projecttarget.targetandroid-19android.library.reference.1..Sliding ... [详细]
  • 猜字母游戏
    猜字母游戏猜字母游戏——设计数据结构猜字母游戏——设计程序结构猜字母游戏——实现字母生成方法猜字母游戏——实现字母检测方法猜字母游戏——实现主方法1猜字母游戏——设计数据结构1.1 ... [详细]
author-avatar
忆丨残年_686
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有