简体   繁体   English

更改Android Studio 3.0中的默认Users文件夹

[英]Change the default Users folder in Android Studio 3.0

Been trying in vain to change the default Users folder drive C to drive G as drive C has very little space left. 徒劳地试图将默认的Users文件夹驱动器C更改为驱动器G,因为驱动器C的剩余空间很小。

These answers helped to some extent, in that, I was successful only moving the .gradle folder: 这些答案在某种程度上有所帮助,因为我仅移动.gradle文件夹就成功了:

But in spite of following them verbatim, Android Studio 3.0 makes in drive C , the .android , .AndroidStudio3.0 folders and populates them with its stuff everytime it restarts. 但是,尽管会逐字跟踪它们,但Android Studio 3.0会在驱动器C中创建.android.AndroidStudio3.0文件夹并在每次重新启动时填充其中的内容。

Here's the idea.properties file: 这是idea.properties文件:

# custom Android Studio properties
idea.config.path=G:/Users/Nani/.AndroidStudio3.0/config
idea.system.path=G:/Users/Nani/.AndroidStudio3.0/system

...and the system environment variables: ...以及系统环境变量:

ANDROID_SDK_HOME = G:\Users\Nani
GRADLE_USER_HOME = G:\Users\Nani

Has anything changed in this regard with Android Studio 3 ? Android Studio 3在这方面有什么变化吗? Kindly advice; 好心的建议; thanks in advance! 提前致谢!

Turned out that the solution is simple. 原来,解决方案很简单。 Followed these steps: 遵循以下步骤:

  1. Closed project and from the Configure menu in the Studio Welcome screen, set the Android SDK folder to G:\\Users\\Nani\\AppData\\Local\\Android 关闭项目,然后从Studio“欢迎使用”屏幕的“ Configure菜单中,将Android SDK文件夹设置为G:\\Users\\Nani\\AppData\\Local\\Android
  2. Allowed Studio to download the SDK again into the new location (copying the existing SDK proved painful) 允许Studio重新将SDK下载到新位置(复制现有的SDK十分麻烦)
  3. Allowed the idea.properties file and the system environment variables (as in the question), to remain 允许idea.properties文件和系统环境变量(如问题中所示)保留

Now, drive C is sufficiently free and all Studio download activities happen in drive G . 现在,驱动器C已足够免费,并且所有Studio下载活动都发生在驱动器G中

Thanks to all who looked in. 感谢所有看过的人。

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

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