简体   繁体   English

为什么更改 VMOptions 后无法打开 Android Studio

[英]Why I cant open Android Studio after changing VMOptions

Recently I changed the VMOptions on my Android Studio trying to free some RAM memory.最近我更改了 Android Studio 上的 VMOptions,试图释放一些 RAM memory。 Happens that I wrote and saved the command with an error and now I cant open Android Studio..碰巧我编写并保存了错误的命令,现在我无法打开 Android Studio..

I tried to reinstall AS, delete studio64.vmoptions file at bin folder, but still cant open Android Studio.我尝试重新安装 AS,删除 bin 文件夹下的 studio64.vmoptions 文件,但仍然无法打开 Android Studio。 Can someone help me with that?有人可以帮我吗?

The studio.bat command clearly shows the error that i wrote in VMOptions, but I cant find and change that line Error in VMOptions that I wrote studio.bat 命令清楚地显示了我在 VMOptions 中编写的错误,但我无法找到并更改我编写的 VMOptions 中的错误

Referencing to this question: How to reset Android Studio参考这个问题: 如何重置 Android Studio

On Mac OS X在 Mac OS X 上

Remove these directories:删除这些目录:

~/Library/Application\ Support/AndroidStudio*
~/Library/Preferences/AndroidStudio*
~/Library/Caches/AndroidStudio*
~/Library/Logs/AndroidStudio*
~/.AndroidStudio*

On Windows:在 Windows 上:

Go to your User Folder - on Windows 7/8 this would be: Go 到您的用户文件夹 - 在 Windows 7/8 上,这将是:

[SYSDRIVE]:\Users\[your username] (ex. C:\Users\JohnDoe\)

In this folder there should be a folder called.AndroidStudioBeta or.AndroidStudio (notice the period at the start - so on some OSes it would be hidden).在此文件夹中应该有一个名为 .AndroidStudioBeta 或 .AndroidStudio 的文件夹(请注意开头的句点 - 所以在某些操作系统上它会被隐藏)。

Delete this folder (or better yet, move it to a backup location - so you can return it if something goes wrong).删除此文件夹(或者更好的是,将其移动到备份位置 - 这样如果出现问题,您可以将其退回)。

This should reset your Android Studio settings to default.这应该会将您的 Android Studio 设置重置为默认值。

Wanted to give you a long answer but there is a whole page about configuration so here you go .想给你一个很长的答案,但有一整页是关于配置的,所以你在这里 go Find the .vmoptions file and edit it.找到.vmoptions文件并进行编辑。

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

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