简体   繁体   English

无法在Android Studio中编辑studio.exe和studio64.exe

[英]Unable to edit studio.exe and studio64.exe in Android Studio

Am getting an error that there is not enough memory for the emulator to work. 收到一个错误消息,指出没有足够的内存供模拟器使用。 So am trying to edit the Xmx and Xms values but am getting access denied error. 因此,我试图编辑Xmx和Xms值,但出现访问被拒绝错误。 Can somebody tell me how to increase the memory for emulator? 有人可以告诉我如何增加模拟器的内存吗?

You shouldn't modify the .exe files. 您不应该修改.exe文件。 You can check the What are the Xms and Xmx parameters when starting JVMs? 您可以在启动JVM时检查Xms和Xmx参数什么? for changing the Xmx and Xms values. 用于更改Xmx和Xms值。

I know it has a lot of time but maybe help someone else. 我知道时间很多,但也许可以帮助别人。

If you can not edit the file directly, copy the studio64.exe.vmoptions to another directory or folder foe example deskopt, then open it, edit the value, save it. 如果您不能直接编辑文件,请将studio64.exe.vmoptions复制到另一个目录或文件夹(例如deskopt),然后打开它,编辑值,然后保存。 Finally substitute the new studio64 to the old one. 最后,用新的studio64代替旧的。

Done 完成

If your system OS is 32 bit. 如果您的系统操作系统是32位。 Then, you will not be avail to increase memory use more then 800 in studio.exe.vmoptions file. 这样,您将无法在Studio.exe.vmoptions文件中增加使用的内存量(超过800)。 32位OS系统中的内存设置 You have to upgrade your system OS from 32 bit to 64 bit. 您必须将系统OS从32位升级到64位。

Also, remember that Google said that, Android Studio new update will be not available for 32 bit system after 2020. 另外,请记住,谷歌曾说过,2020年之后Android Studio的新更新将不适用于32位系统。

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

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