How to point settings location of Android Studio to a different custom location?

大城市里の小女人 提交于 2020-01-21 20:33:07

问题


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.

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.

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:


I found out the solution.

  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.

Works perfectly.



来源:https://stackoverflow.com/questions/33021781/how-to-point-settings-location-of-android-studio-to-a-different-custom-location

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!