是否有可能在另一个地方分配这些文件夹? [英] Is it possible to allocate these folders in another place?

查看:192
本文介绍了是否有可能在另一个地方分配这些文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装 Android的工作室,我有默认路径 C:\\用户\\管理\\应用程序数据\\本地\\的Andr​​oid \\ SDK 来设置我的 SDK 。如果我选择了这个选项,某些文件夹出现在路径上 C:\\用户\\管理员

这些文件夹是:


  • .android


  • .AndroidStudio1.3


  • .oracle_jre_usage


  • .gradle


要多一点清洁剂我想所有这些文件夹裹到另一个文件夹,但我每次运行时间 Android的工作室它让我重新配置设置的选项。如果我重新配置它们,文件夹重新出现在路径上 C:\\用户\\管理员

我能做些什么,以这些文件夹包装成另一个或另设地点为他们和该设置将被保存?


编辑:我证明由拉胡尔·蒂瓦里,但提供了答案的博客的解决方案,我只能得到该文件夹​​ .android 将在新的文件夹中。其余的文件夹在更改后的同一位置。


编辑2:提供的博客拉胡尔·蒂瓦里移至文件夹 .gradle 更改默认设置 Android的工作室

 文件>其他设置...>默认设置...>建立,执行,部署>摇篮

下面我为服务目录路径: C:/Users/Administrator/AndroidStudio/.gradle

但该文件夹 .gradle 的道路上仍然出现 C:/用户/管理员


修改3:试图删除文件夹 .AndroidStudio1.3 我改变这些行:

 #------------------------------- --------------------------------
#取消,如果你想自定义路径,用户安装的插件文件夹此选项。确保您使用正斜杠。
#------------------------------------------------- --------------------
#idea.plugins.path = $ {} idea.config.path /插件#------------------------------------------------- --------------------
#取消,如果你想IDE日志文件夹以自定义路径此选项。确保您使用正斜杠。
#------------------------------------------------- --------------------
#idea.log.path = $ {} idea.system.path /日志

这些:

 #------------------------------- --------------------------------
#取消,如果你想自定义路径,用户安装的插件文件夹此选项。确保您使用正斜杠。
#------------------------------------------------- --------------------
idea.plugins.path = $ {C:/Users/Administrator/AndroidStudio/.AndroidStudio1.3/config} /插件#------------------------------------------------- --------------------
#取消,如果你想IDE日志文件夹以自定义路径此选项。确保您使用正斜杠。
#------------------------------------------------- --------------------
idea.log.path = $ {C:/Users/Administrator/AndroidStudio/.AndroidStudio1.3/system} /日志

但我也不能移动该文件夹。


修改4:这是博客我之前提到(非常感谢你拉胡尔·蒂瓦里)。我张贴在这里,因为他的答案被删除。


在此先感谢!


解决方案

最后,我得动议三项,我把上面的文件夹的解决方案。我认为这可能是有趣的,放在这里,我所面临的问题,而且我做了解决这些问题的变化。

我要调查有关的最后一个文件夹, .oracle_jre_usage ,我会完成这个答案,如果我得到了它的解决方案。你看,我完成 .gradle 文件夹中的解决方案。


移动 .android 文件夹

说真的,以下是拉胡尔·蒂瓦里提供的博客的步骤,这个文件夹可能被移动。不过我要在这里把所有的过程:


  • 您必须移动你的 .android 文件夹,收盘后 Android的工作室(如果你有的话运行),在其中你想,这将是存储在我的情况的文件夹, C:\\用户\\管理\\ AndroidStudio


  • 当心在新的文件夹的名称空间,它可以给你带来麻烦(我)。我的意思是, Android的工作室新建文件夹或同类者。


  • 如果您是窗口,你可以做我的电脑&GT上单击鼠标右键;性状>高级系统设置>环境变量并创建一个名为一个新的环境变量 ANDROID_SDK_HOME 和值,你必须把新的路径,其中 .android 文件夹将被保存。这是您在其中移动在上面的步骤 .android 文件夹相同的路径。


  • 点击确定按钮接受更改。


  • 重新启动 Android的工作室,并查找了 .android 文件夹没有出现在默认路径。



移动 .AndroidStudio1.3 文件夹

使用该文件夹中我遇​​到了一些问题,因为我没有注意到一些细节,是非常重要的。这里的步骤,我如下:


  • 首先,你必须关闭 Android的工作室做任何更改之前。


  • 之后,你必须移动要在​​其中,这将是存储在文件夹 .AndroidStudio1.3 的路径。


  • 接下来,你必须去被安装在 Android的工作室文件夹,并改变了线路,其中 idea.config.path idea.system.path 出现在其中这些文件夹将位于新的路径。


他们必须与此类似:

  idea.config.path = C:/Users/Administrator/AndroidStudio/.AndroidStudio1.3/configidea.system.path = C:/Users/Administrator/AndroidStudio/.AndroidStudio1.3/system


  

在这里,我有三个问题,请小心


  
  

      
  • 注意路径是用 / 而不是 \\ 视窗默认情况下把。


  •   
  • 不要更改的值 idea.plugins.path idea.log.path (我的编辑3) 。请确保您正在改变的 idea.config.path idea.system.path 的值。


  •   
  • 取消对线中的 idea.config.path 出现idea.system.path 。我的意思是,删除,他们必须在每行的开头。


  •   


  • 最后一步,重新推出 Android的工作室


搜索和做一些证明我也得到了解决移动 .gradle 文件夹中。这些步骤是一样的 .android 文件夹,但我把这里所有的步骤(与更改的值),以避免任何混乱。在这里,它是:

移动 .gradle 文件夹


  • 您必须移动你的 .gradle 文件夹,收盘后 Android的工作室(如果你有的话运行),在其中你想,这将是存储在我的情况的文件夹, C:\\用户\\管理\\ AndroidStudio \\ .gradle


  • 当心在新的文件夹的名称空间,它可以给你带来麻烦(我)。我的意思是, Android的工作室新建文件夹或同类者。


  • 如果您是窗口,你可以做我的电脑&GT上单击鼠标右键;性状>高级系统设置>环境变量并创建一个名为一个新的环境变量 GRADLE_USER_HOME 和值,你必须把新的路径,其中 .gradle 文件夹将被保存。这是您在其中移动在上面的步骤 .gradle 文件夹相同的路径。


  • 点击确定按钮接受更改。


  • 重新启动 Android的工作室,并查找了 .gradle 文件夹没有出现在默认路径。



I am installing Android Studio and I have by default the path C:\Users\Administrator\AppData\Local\Android\sdk to set my SDK. If I choose this option, some folders appeared on the path C:\Users\Administrator.

These folders are:

  • .android

  • .AndroidStudio1.3

  • .oracle_jre_usage

  • .gradle

To be a little more cleaner I tried to wrap all these folders into another folder but each time I run Android Studio it gives to me the option to configure again the settings. If I configure them again, the folders re-appeared on the path C:\Users\Administrator.

What can I do to wrap these folders into another one or to set another location for them and that the settings will be saved?


EDIT: I prove the solutions on the blog of the answer provided by Rahul Tiwari but I only could get that the folder .android will be in the new folder. The rest folders are at the same location after the changes.


EDIT 2: According to the blog provided by Rahul Tiwari to move the folder .gradle I change the default settings of Android Studio:

File > Other Settings... > Default Settings... > Build, Execution, Deployment > Gradle

Here I have as Service directory path: C:/Users/Administrator/AndroidStudio/.gradle

But the folder .gradle still appears on the path C:/Users/Administrator.


EDIT 3: Trying to remove the folder .AndroidStudio1.3 I changed these lines:

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.plugins.path=${idea.config.path}/plugins

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.log.path=${idea.system.path}/log

to these:

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.plugins.path=${C:/Users/Administrator/AndroidStudio/.AndroidStudio1.3/config}/plugins

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=${C:/Users/Administrator/AndroidStudio/.AndroidStudio1.3/system}/log

but I also couldn't move the folder.


EDIT 4: This is the blog that I mention before (Thank you very much Rahul Tiwari). I post it here because his answer was deleted.


Thanks in advance!

解决方案

Finally, I got the solution to move three of the folders that I put above. I think it could be interesting to put here the problems that I faced and the changes that I made to solve them.

I'm going to investigate about the last folder, .oracle_jre_usage, and I will complete this answer if I got a solution for it. Look that I complete the solution for .gradle folder.


To move .android folder

Really, following the steps of the blog that Rahul Tiwari provided, this folder could been moved. Nevertheless I'm going to put here all the process:

  • You have to move your .android folder, after closing Android Studio (if you have it running), to the folder in which you want that it will be stored, in my case, C:\Users\Administrator\AndroidStudio.

  • BEWARE WITH THE SPACES IN THE NAME OF THE NEW FOLDER, IT COULD GIVE TO YOU PROBLEMS (AS ME). I mean, Android Studio, New Folder or similars.

  • If you are on Windows, you can do right-click on My Computer > Properties > Advanced System Settings > Environment Variables and create a new environment variable named ANDROID_SDK_HOME and as value you have to put the new path in which .android folder will be stored. It's the same path in which you have moved the .android folder in the step above.

  • Click "OK" button to accept your changes.

  • Re-launch Android Studio and look that the .android folder doesn't appear in the default path.


To move .AndroidStudio1.3 folder

With that folder I had some problems because I didn't noticed some details that were very important. Here the steps that I followed:

  • First of all, you have to close Android Studio before doing any change.

  • After, you have to move the folder .AndroidStudio1.3 to the path in which you want that it will be stored.

  • Next, you have to go to the folder in which Android Studio were installed and changed the lines where idea.config.path and idea.system.path appeared for the new path in which these folders are going to be located.

They have to be something similar to this:

idea.config.path=C:/Users/Administrator/AndroidStudio/.AndroidStudio1.3/config

idea.system.path=C:/Users/Administrator/AndroidStudio/.AndroidStudio1.3/system

Here I had three problems so please be careful:

  • Notice that the paths are with / and not with \ as Windows put by default.

  • DON'T CHANGE the values of idea.plugins.path and idea.log.path (My EDIT 3). Be sure that you are changing idea.config.path and idea.system.path values.

  • Uncomment the lines in which idea.config.path and idea.system.path appears. I mean, remove the # that they have at the begining of each line.

  • The last step, re-launch Android Studio.

Searching and doing some proves I also get the solution to move .gradle folder. The steps are the same as .android folder but I put here all the steps (with the values that changed) to avoid any confusion. Here it is:

To move .gradle folder

  • You have to move your .gradle folder, after closing Android Studio (if you have it running), to the folder in which you want that it will be stored, in my case, C:\Users\Administrator\AndroidStudio\.gradle.

  • BEWARE WITH THE SPACES IN THE NAME OF THE NEW FOLDER, IT COULD GIVE TO YOU PROBLEMS (AS ME). I mean, Android Studio, New Folder or similars.

  • If you are on Windows, you can do right-click on My Computer > Properties > Advanced System Settings > Environment Variables and create a new environment variable named GRADLE_USER_HOME and as value you have to put the new path in which .gradle folder will be stored. It's the same path in which you have moved the .gradle folder in the step above.

  • Click "OK" button to accept your changes.

  • Re-launch Android Studio and look that the .gradle folder doesn't appear in the default path.


这篇关于是否有可能在另一个地方分配这些文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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