[英]How to FULLY install Android Studio to a non-default (D:) drive
I'm going to start with the high-level "common sense" question and then get into the tech details:我将从高级“常识”问题开始,然后进入技术细节:
The high-level question: When running the Android Studio installation program in Windows 10, and I tell it to install to D: drive (instead of the default C: drive), why does it insist on installing some components onto the C: drive?高阶问题:在Windows 10中运行Android Studio安装程序时,我告诉它安装到D:盘(而不是默认的C:盘),为什么它一定要安装一些组件到C:盘?
Reasons for installing to a non-default drive:安装到非默认驱动器的原因:
The obvious intent was for all third-party (non-OS) programs to live on D: drive, or at least not on C: "OS" drive.明显的意图是让所有第三方(非操作系统)程序都存在于 D: 驱动器上,或者至少不存在于 C:“OS”驱动器上。 (I will ignore the "separation of 'code' and 'data' design paradigm, which would rightfully require a third P: 'PROGRAM' drive, and I'll just focus on the lack-of-space problem.) (我将忽略“'代码'和'数据'设计范例的分离,这理所当然地需要第三个 P:'PROGRAM' 驱动器,我将只关注空间不足的问题。)
After 5 install/uninstall attempts, each time changing all "c:" text box prompts to "d:" and learning more and more about the various libraries and folders that STILL went to c: drive, I've finally found all the big ones, and set symbolic links for them, and moved their contents over to d: drive targets.经过 5 次安装/卸载尝试,每次都将所有“c:”文本框提示更改为“d:”,并且越来越多地了解仍然转到 c: 驱动器的各种库和文件夹,我终于找到了所有大的的,并为它们设置符号链接,并将它们的内容移动到 d: 驱动器目标。
There are still a few "minor"(?) files and directories on c: drive that I'm not really sure belong to Android Studio, but I'm too chicken/lazy to set up the symbolic links for them...but here's my high-level question for the Android Studio developers: c 上还有一些“次要”(?)文件和目录:我不太确定属于 Android Studio 的驱动器,但我太胆小/太懒了,无法为它们设置符号链接......但是这是我对 Android Studio 开发人员的高级问题:
WHY SHOULD I HAVE TO?为什么我必须这样做? WHY CAN'T THIS BE MADE SIMPLE AND INTUITIVE?为什么这不能变得简单和直观? If I tell the install program to put EVERYTHING on the d: drive (IDE, sdk, jdk, gradle, emulator, and so on) why can't the install program just do that?如果我告诉安装程序将所有东西都放在 d: 驱动器上(IDE、sdk、jdk、gradle、模拟器等)为什么安装程序不能这样做?
Am I missing something simple here?我在这里错过了一些简单的东西吗? If I am missing something simple or obvious, then why does it (and my first app) build and run just fine if I set all these symbolic links to d: drive targets?如果我遗漏了一些简单或明显的东西,那么如果我将所有这些符号链接设置为 d: 驱动器目标,为什么它(和我的第一个应用程序)可以正常构建和运行?
Change the default installation location of the programs to D or other required drive by using the following method:使用以下方法将程序的默认安装位置更改为 D 或其他所需驱动器:
Brilliantly useful.非常有用。 Now if there was only a way to also move User Profiles to a different drive.现在,如果只有一种方法可以将用户配置文件移动到不同的驱动器。 It looks like this used to be possible but, sadly, not any more.看起来这曾经是可能的,但遗憾的是,现在不再可能了。 Unless there's another registry hack that does this.除非有另一个注册表黑客这样做。 That last sentence refers to user profiles.最后一句话是指用户资料。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.