Android(安卓)Studio启动后一直 Checking for updated SDK components
16lz
2021-01-26
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,这次终于进入开发界面了。
更多相关文章
- android手机连接到ubuntu方法
- Ubuntu下eclipse连接手机
- Android(安卓)Studio For Mac 启动模拟机时关于“Intel HAXM is
- Android(安卓)基础-Activity的使用(二)
- android环境搭建——工欲善其事,必先利其器 2
- Android启动之冷启动,热启动
- android service与activity交互的方试
- 【Android开发 蓝牙连接状态】Android实时检测蓝牙连接状态
- android studio连接小米手机mi 5s plus真机调试连接不上