[英]Android-Studio : Error: Could not create the Java Virtual Machine. A fatal Exception Occurred
I have installed Android studio today. 我今天已经安装了Android Studio。 Now When I am trying to import my existing project which work previously in other PC, just getting error as shown in below image.
现在,当我尝试导入以前在其他PC上可以运行的现有项目时,仅收到错误,如下图所示。
I also tried from Android-Studio : Error: Could not create the Java Virtual Machine . 我也从Android Studio尝试过:错误:无法创建Java虚拟机 。 If any other solution than please let me know about these.
如果有其他解决方案,请让我知道。
My System Description. 我的系统描述。 Window 7, 32-bit, 3GB RAM
Windows 7、32位,3GB RAM
如果需要使用4GB内存,请使用-Xmx4096m
This is a memory error. 这是内存错误。 Seems like you have to increase the memory size as you have listed that your PC has only 3GB RAM.
似乎您必须增加内存大小,因为您列出的PC只有3GB RAM。 You have to physically increase the RAM and then increase the heap size for Android Studio using the following guide :
您必须使用以下指南从物理上增加RAM,然后增加Android Studio的堆大小:
http://tools.android.com/tech-docs/configuration http://tools.android.com/tech-docs/configuration
Android Studio System Requirements page says only 2GB is needed as a minimum. Android Studio系统要求页面显示最低仅需要2GB。 So you may be able to run it if you follow the above guide and increase the heap size Android Studio uses.
因此,如果您遵循上述指南并增加Android Studio使用的堆大小,则可以运行它。
But in the long run I highly recommend increasing the RAM, as 4GB is the recommended size and without that much you will encounter many lags and problems such as very high Gradle build times. 但是从长远来看,我强烈建议增加RAM,因为建议大小为4GB,如果没有那么多,您将遇到许多滞后和问题,例如Gradle构建时间非常长。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.