如何将 Android Studio 的设置位置指向不同的自定义位置? [英] How to point settings location of Android Studio to a different custom location?

查看:35
本文介绍了如何将 Android Studio 的设置位置指向不同的自定义位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下问题.我的系统中有两个 Android Studio.一个是稳定版,另一个是 Canary 版本.当我更新它们时,不幸的是我在完成安装"屏幕中搞砸了.它要求从自定义位置导入设置,但我提供了错误的位置.

I have the following problem. I have two Android Studio in my system. One is the stable version and the other is the Canary version. When I updated them, unfortunately I messed up in the 'Complete Installation' screen. It asked for importing settings from custom location and I gave the wrong location.

最初 Canary 版本指向 C:\Users\myUserName.AndroidStudioPreview1.4,稳定版指向 C:\Users\myUserName.AndroidStudio1.4.但更新后两者都指向C:\Users\myUserName.AndroidStudio1.4.

Initially by Canary version was pointing to C:\Users\myUserName.AndroidStudioPreview1.4 and Stable version was pointing to C:\Users\myUserName.AndroidStudio1.4. But after the update both are pointing to C:\Users\myUserName.AndroidStudio1.4.

因此有很多问题.我希望我的 Canary 版本指向 C:\Users\myUserName.AndroidStudioPreview1.4.我该怎么做?

Because of this there are so many problems. I want my Canary version to point to C:\Users\myUserName.AndroidStudioPreview1.4. How do i do that?

推荐答案

我找到了解决方案.

  1. 转到您安装 Canary 版 Android Studio 的文件夹(很可能在 Program Files 中).
  2. 转到 bin 文件夹
  3. 在文本编辑器中打开 studio.exe.vmoptionsstudio64.exe.vmoptions.
  4. 其中,将以下行 -Didea.paths.selector=AndroidStudio1.4 更改为 -Didea.paths.selector=AndroidStudioPreview1.4.或者您想要的任何其他设置文件夹.
  1. Go to the folder where you installed your Canary version of Android Studio (most likely in Program Files).
  2. Go to bin folder
  3. Open both studio.exe.vmoptions and studio64.exe.vmoptions in a text editor.
  4. In that, change the following line -Didea.paths.selector=AndroidStudio1.4 to -Didea.paths.selector=AndroidStudioPreview1.4. Or to any other Setting folder that you want.

完美运行.

这篇关于如何将 Android Studio 的设置位置指向不同的自定义位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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