无法正常启动android studio

原本在开始学习安卓的时候,就已经了解到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,这次终于进入开发界面了。



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值