如何禁用首次运行 Android Studio 中的下载组件 [英] How disable Downloading Components in Android Studio first running

查看:22
本文介绍了如何禁用首次运行 Android Studio 中的下载组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我提取了 Android Studio IDE 135.1740770,
还为 SDK 安装了这些软件包:
工具
- Android SDK 工具 24.1.2
- Android SDK 平台工具 22
- Android SDK 构建工具 22.0.1
附加
- Android 支持存储库 13
- Android 支持库 22.1
- Google Play 服务 23
- 谷歌存储库 16
- Google USB 驱动程序 11

I extract Android Studio IDE 135.1740770,
Also these packages are installed for SDK:
Tools
- Android SDK Tools 24.1.2
- Android SDK platform-tools 22
- Android SDK Build-tools 22.0.1
Extras
- Android Support Repository 13
- Android Support Library 22.1
- Google Play services 23
- Google Repository 16
- Google USB Driver 11

但是当我第一次运行Android Studio时,虽然它询问我的sdk文件夹的位置,但它想再次下载旧的sdk构建工具:
- Android SDK 工具 22.1.2
- Android SDK 平台工具 21
- android 21的来源
并在下载所有这些(约 500 MB)后再次删除它们!!!并使用我之前安装的较新的 sdk 工具:|
怎么第一次运行Android Studio不用重新下载这些没用的sdk包?

But when I run Android Studio for the first time, although it asks for location of my sdk folder, but it wants to download older sdk build tools again:
- Android SDK Tools 22.1.2
- Android SDK platform-tools 21
- Sources for android 21
and after downloading all of them (about 500 MB) then removes them again!!! and use the newer sdk tools that I installed before :|
How can I run Android Studio for the first time without re-downloading these useless sdk packages?

推荐答案

进入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.

这篇关于如何禁用首次运行 Android Studio 中的下载组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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