简体   繁体   English

如何在 C 以外的驱动器上完全安装 Android Studio 2020.3.1 for Windows 64 位:驱动器

[英]How to install Android Studio 2020.3.1 for Windows 64-bit completely on a drive other than C: Drive

Problem问题

I am new to android development.我是 android 开发的新手。 I am trying to learn flutter and came to know that Android Studio(AS) is better than VS Code for android development.我正在尝试学习 flutter 并了解到 Android Studio(AS) 优于 android 开发的 VS Code。

The laptop I use has an SSD(C:OS and E:Apps) and a Hard disk(D:) .我使用的笔记本电脑有一个SSD(C:OS and E:Apps)和一个Hard disk(D:) C: drive is almost full and can't accommodate Android Studio and all the dependency folders like the sdks, avd folder, graddle etc., So I want to install Android Studio and all other dependencies on the E: drive which has more than 300 GB of space. C: drive is almost full and can't accommodate Android Studio and all the dependency folders like the sdks, avd folder, graddle etc., So I want to install Android Studio and all other dependencies on the E: drive which has more than 300 GB 空间。 It is only due to lack of space on C: drive that I want to install Android Studio on E: drive.只是由于 C: 驱动器上的空间不足,我想在 E: 驱动器上安装 Android Studio。

What I tried already我已经尝试过的

  • Firstly I uninstalled AS manually (because uninstaller is not provided in newer versions) following this article on Reddit Uninstall Android Studio Manually .首先,我在 Reddit Uninstall Android Studio Manually上的这篇文章之后手动卸载了 AS(因为较新版本中没有提供卸载程序)。

  • Then I installed it again but this time during installation, I changed the location where it saves SDKs and the AS itself to E: drive.然后我再次安装它,但这次在安装过程中,我将它保存 SDK 和 AS 本身的位置更改为E:驱动器。 This caused problems with Android Virtual Devices.这导致 Android 虚拟设备出现问题。 So following another StackOverflow question, I added an environment variable named ANDROID_SDK_HOME but then I had an issue with AS not detecting adb (but I am able to access it from the command line).因此,在另一个 StackOverflow 问题之后,我添加了一个名为 ANDROID_SDK_HOME 的环境变量,但随后我遇到了 AS 未检测到adb的问题(但我可以从命令行访问它)。

  • I searched for a solution on stack overflow.我搜索了堆栈溢出的解决方案。 I saw this question on How to FULLY install Android Studio to a non-default (D:) drive but it was over my head.我在如何将 Android Studio 完全安装到非默认 (D:) 驱动器上看到了这个问题,但这超出了我的想象。 If that's a valid solution, I would definitely like to know how to add those symbolic links.如果这是一个有效的解决方案,我肯定想知道如何添加这些符号链接。

  • Currently, I have uninstalled AS again (manually) and I even deleted the env variable ANDROID_SDK_HOME .目前,我再次(手动)卸载了 AS,我什至删除了环境变量ANDROID_SDK_HOME I have flutter and dart installed.我安装了 flutter 和 dart。


I would like to know how I can install AS and dependencies completely on E: Drive and get it working along with the Android Virtual Device.我想知道如何在E: Drive 上完全安装 AS 和依赖项,并让它与 Android 虚拟设备一起工作。

Note笔记

Android Studio worked fine when it was on C: drive but C: drive doesn't have enough space to accommodate the growing size of AS and dependencies. Android Studio 在 C:驱动器上运行良好,但 C:驱动器没有足够的空间来容纳不断增长的 AS 和依赖项。

If I have to provide any other information about the current situation, please let me know in a comment rather than in an answer.如果我必须提供有关当前情况的任何其他信息,请在评论而不是答案中告诉我。

Lately, I've used the jetbrains' toolbox to install android studio on my laptop.最近,我使用 jetbrains 的工具箱在我的笔记本电脑上安装了 android studio。 Maybe you could try it.也许你可以试试。 this is the link -> https://www.jetbrains.com/toolbox-app/ .这是链接-> https://www.jetbrains.com/toolbox-app/

After install the AS with the toolbox, change the SDK's path when the dialog is prompted.使用工具箱安装 AS 后,在提示对话框时更改 SDK 的路径。 That works for me.这对我行得通。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM