Android studio 首次运行卡在“下载组件"处;窗户 [英] Android studio first run stuck at "Downloading Components" window

查看:30
本文介绍了Android studio 首次运行卡在“下载组件"处;窗户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从 android 站点下载了最新的 android studio bundle.安装成功,但是当我第一次运行它时,它在屏幕截图中显示一个窗口,消息正在下载 Android SDK 工具,修订版 24.1.2",然后它无限挂起.当我单击取消然后显示详细信息时,会出现附加屏幕截图中的消息.即使单击关闭按钮,此对话框也不会消失.我必须从流程管理器中结束它.我想知道是否有人能够使它工作.

I have downloaded the latest android studio bundle from android site. Installation was successful, but when I run it for the first time, it shows a window in the screenshot with message "Downloading Android SDK Tools, revision 24.1.2" and then it hangs on infinitely. When I click on cancel and then show details, the message in attached screenshot appears. This dialog never disappears even on clicking the close button. I have to end it from process manager. I was wondering if anyone has been able to make it work.

推荐答案

要在启动时禁用下载组件",

To disable "Downloading Components" at startup,

  • 进入Android Studio的安装目录.
  • 您会在那里找到一个名为bin"的文件夹.
  • 在这个文件夹中有一个名为idea.properties"的文件.
  • 打开此文件并在文件末尾添加以下行:

  • Go to the installation directory of Android Studio.
  • There you will find a folder named "bin".
  • Inside this folder there is a file named "idea.properties".
  • Open this file and add the following line to the end of the file:

disable.android.first.run=true

这将禁用 Android Studio 在首次运行时执行的检查并决定下载所有内容.

What this will do is disable the check that Android Studio performs on first run and decides to download all that stuff.

如果它要求将文件保存在其他位置而不是覆盖原来的位置,请检查文件的访问权限.

If it asks to save the file at some different place instead of overwriting the original one, please check the access permissions to the file.

这篇关于Android studio 首次运行卡在“下载组件"处;窗户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆