简体   繁体   English

Android-Studio:错误:无法创建Java虚拟机。 发生致命异常

[英]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.

相关问题 错误:无法创建 Java 虚拟机。 错误:发生了致命异常。 程序将会退出 - Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit 启动错误:无法创建 Java 虚拟机。 发生了致命异常 - Launch error: could not create the Java virtual machine. A fatal exception has occurred Eclipse 错误:无法创建 Java 虚拟机。 发生了致命异常。 程序将会退出 - Eclipse error: could not create the Java Virtual Machine. A fatal exception has occurred. program will exit Mvn clean install错误,错误:无法创建Java虚拟机。 错误:发生致命异常。 程序将会退出 - Mvn clean install Error, Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit Pycharm:出现“错误:无法创建Java虚拟机。 错误:发生致命异常。 程序将会退出。” - Pycharm : Getting “Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.” Android-Studio:错误:无法创建Java虚拟机,我无法测试我的应用 - Android-Studio : Error: Could not create the Java Virtual Machine, i can't test my app IntelliJ | 错误:无法创建Java虚拟机| 错误:发生致命异常。 程序将会退出 - IntelliJ | Error: Could not create the Java Virtual Machine | Error: A fatal exception has occurred. Program will exit 错误:无法创建Java虚拟机。 -Apache Hadoop - Error: Could not create the Java Virtual Machine. - Apache Hadoop 无法创建Java虚拟机。 Ubuntu终端上的错误 - Could not create the Java Virtual Machine. error on ubuntu terminal Android Studio错误:无法创建Java虚拟机 - Android Studio Error: Could not create the Java Virtual Machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM