原本在开始学习安卓的时候,就已经了解到android studio这个软件,这个软件是IEDA集成软件,可不知道各种原因,就是使用不了,抑制使用的eclipse学习的,可是和android studio 相比,得去差的太多。而且谷歌已经说明今后不再使用eclipse,而是用AS作为安卓的开发软件
今天下载了android studio 1.0(稳定版),从百度查看了一下,下面是他的介绍方法,方法引用于
http://codecloud.net/android-studio-checking-updated-sdk-components-4495.html
Android Studio 安装后启动后一直停止在 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,这次终于进入开发界面了。