AndroidStudio 安装后启动后一直停止在 Checking for updated SDK components。

选择取消后,再启动 Android Studio 还是一样的问题。

原因是安装完成后,启动过程需要检测SDK路径和最新版本,因为 Google 被墙连接不到 SDK 更新网站。

连接超时无法读取URL,会出现如下错误:

....
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection timed out: connect

Fetched Add-ons List successfully

Refresh Sources

Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: Connect Connection timed out: connect

Refresh Sources:

Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: Connect Connection timed out: connect

There is nothing to install or update.

The following SDK component was not installed: build-tools-21.1.1

Refresh Sources:

Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection timed out: connect
....

解决方法

在Android studio安装目录的\bin子目录,找到 idea.properties 文件。在 idea.properties 文件的最后增加一行代码:

disable.android.first.run=true

这行的作用就是让Android studio 在启动过程不进行SDK的版本检测。

再次启动 Android studio,这次终于进入开发界面了。

更多相关文章

  1. android手机连接到ubuntu方法
  2. Ubuntu下eclipse连接手机
  3. Android(安卓)Studio For Mac 启动模拟机时关于“Intel HAXM is
  4. Android(安卓)基础-Activity的使用(二)
  5. android环境搭建——工欲善其事,必先利其器 2
  6. Android启动之冷启动,热启动
  7. android service与activity交互的方试
  8. 【Android开发 蓝牙连接状态】Android实时检测蓝牙连接状态
  9. android studio连接小米手机mi 5s plus真机调试连接不上

随机推荐

  1. android下ListView的奇异异常大集合(持续
  2. 我的android笔记
  3. Android Bug 汇总
  4. Bad CPU type in executable
  5. Android碎碎念 -- 数据存储
  6. 配置android的开发环境
  7. Android(安卓)NDK C++中的多线程
  8. Android中ActionBar居中
  9. Android 之主题
  10. Android WebView的使用方法总结