IntelliJ IDEA:堆大小更改后构建过程异常终止
IntelliJ IDEA: Abnormal build process termination after heap size change
我一直在尝试分配 256MB 的数组,这产生了 Java 堆 space 异常。我试过了 this solution and it didn't help. So I've been looking for another similar problems and found this。但是,在将堆大小提高到 1377MB 以上后,出现此错误:
Error:Abnormal build process termination: "C:\Program Files
(x86)\Java\jdk1.8.0_91\bin\java" -Xmx1377m -Djava.awt.headless=true
-Djava.endorsed.dirs=\"\" -Djdt.compiler.useSingleThread=true -Dpreload.project.path=C:/Users/JohnDoe/Documents/CacheTest -Dpreload.config.path=C:/Users/JohnDoe/.IntelliJIdea2016.1/config/options
-Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=-2473188797876308560 -Dfile.encoding=windows-1250 -Djps.file.types.component.name=FileTypeManager -Duser.language=en -Duser.country=US -Didea.paths.selector=IntelliJIdea2016.1 "-Didea.home.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA
2016.1.1" -Didea.config.path=C:\Users\JohnDoe.IntelliJIdea2016.1\config -Didea.plugins.path=C:\Users\JohnDoe.IntelliJIdea2016.1\config\plugins
-Djps.log.dir=C:/Users/JohnDoe/.IntelliJIdea2016.1/system/log/build-log
-Djava.io.tmpdir=C:/Users/JohnDoe/.IntelliJIdea2016.1/system/compile-server/temp
-Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"C:\Users\JOHNDO~1\AppData\Local\Temp\kotlin-idea-1150430122745838-is-running\"
-classpath "C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jps-launcher.jar;C:/Program Files (x86)/Java/jdk1.8.0_91/lib/tools.jar;C:/Program Files
(x86)/JetBrains/IntelliJ IDEA
2016.1.1/lib/optimizedFileManager.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/ecj-4.5.2.jar"
org.jetbrains.jps.cmdline.Launcher "C:/Program Files
(x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/resources_en.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/lib/oromatcher.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/protobuf-2.5.0.jar;C:/Program Files
(x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jsr166e.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/lib/asm-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/util.jar;C:/Program Files (x86)/JetBrains/IntelliJ
IDEA 2016.1.1/lib/javac2.jar;C:/Program Files (x86)/JetBrains/IntelliJ
IDEA 2016.1.1/lib/annotations.jar;C:/Program Files
(x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jna-platform.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/lib/nanoxml-2.2.3.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jps-builders.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/lib/trove4j.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/rt/jps-plugin-system.jar;C:/Program Files
(x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jps-model.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/lib/forms_rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jna.jar;C:/Program Files (x86)/JetBrains/IntelliJ
IDEA 2016.1.1/lib/idea_rt.jar;C:/Program Files
(x86)/JetBrains/IntelliJ IDEA
2016.1.1/lib/netty-all-4.1.0.Beta8.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/lib/jgoodies-forms.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jdom.jar;C:/Program Files
(x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/log4j.jar;C:/Program Files
(x86)/JetBrains/IntelliJ IDEA
2016.1.1/lib/picocontainer.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/lib/snappy-in-java-0.3.1.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/openapi.jar;;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/commons-io-1.4.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-base-services-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-base-services-groovy-2.9.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-cli-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-core-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-messaging-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-model-core-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-model-groovy-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-native-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-resources-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-tooling-api-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-tooling-extension-api.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-tooling-extension-impl.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-wrapper-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/guava-jdk5-17.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/jna-3.2.7.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/jsr305-1.3.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/kryo-2.22.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/minlog-1.2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/native-platform-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/native-platform-freebsd-amd64-0.10.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/native-platform-freebsd-i386-0.10.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/native-platform-linux-amd64-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/native-platform-linux-i386-0.10.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/native-platform-osx-amd64-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/native-platform-osx-i386-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/native-platform-windows-amd64-0.10.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/native-platform-windows-i386-0.10.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/objenesis-1.2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/reflectasm-1.07.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/resources_en.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/gson-2.5.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/ant/lib/ant-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/devkit/lib/devkit-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/uiDesigner/lib/jps/ui-designer-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/IntelliLang/lib/intellilang-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/Groovy/lib/groovy-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/Groovy/lib/groovy-rt-constants.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/eclipse/lib/eclipse-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/eclipse/lib/common-eclipse-util.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/maven/lib/maven-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/maven/lib/maven3/lib/plexus-utils-2.0.6.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/osmorc/lib/osmorc-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/osmorc/lib/bndlib-3.0.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/osmorc/lib/bndlib-plugins-3.0.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/osmorc/lib/plexus-utils-3.0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/osmorc/lib/bundlor-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/aspectj/lib/aspectj-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/flex/lib/flex-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/flex/lib/flex-shared.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/gradle/lib/gradle-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/JavaEE/lib/jps/javaee-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/JavaEE/lib/jps/jpa-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/weblogicIntegration/lib/jps/weblogic-jps-plugin.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/dmServer/lib/dmServer-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/GwtStudio/lib/gwt-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/GoogleAppEngine/lib/google-app-engine-jps-plugin.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/GoogleAppEngine/lib/appEngine-runtime.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/Grails/lib/grails-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/Grails/lib/grails-compiler-patch.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/android/lib/jps/android-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/android/lib/jps/android-gradle-jps.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/android/lib/android-common.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/android/lib/android-rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/android/lib/sdk-common.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/android/lib/sdklib.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/android/lib/common.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/android/lib/jarutils.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/android/lib/layoutlib-api.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/android/lib/manifest-merger.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/Kotlin/lib/kotlin-runtime.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/Kotlin/lib/kotlin-reflect.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/Kotlin/lib/kotlin-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/Kotlin/lib/kotlin-android-extensions-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/Kotlin/lib/kotlin-android-extensions-compiler-plugin.jar;C:/Program
Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/javaFX/lib/javaFX-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA
2016.1.1/plugins/javaFX/lib/common-javaFX-plugin.jar" org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 60896
96c068b6-4d3b-4924-a696-9af1caab47b3
C:/Users/JohnDoe/.IntelliJIdea2016.1/system/compile-server
我找到了很多此类问题的答案,但所有这些答案都告诉我降级我的 NVIDIA 驱动程序,我无法做到,而且对我来说根本没有意义。我正在寻找的是某种解释为什么会发生这种情况以及我可以做些什么来解决它。
注意:我使用的是 x64 IDEA。
将您的项目 JSDK 更改为 64 位版本,您正在构建 运行 32 位 JDK,现在不能在 Windows 上分配超过 2GB 的内存。由于其他 JVM 要求,32 位 JVM 的实际最大堆大小通常在 512m 和 1024m 之间。
您可以在 IntelliJ IDEA FAQ and in this answer 中找到更多详细信息。
我也遇到了同样的问题。在我的例子中,Android 支持未启用(文件 >> 设置 >> Android 支持)。启用并重新启动 Android Studio 后一切正常。
我正在使用 Windows x64 位机器。我遇到了类似的问题。我的建议是首先创建一个简单的 java 应用程序并尝试执行它,如果您发现问题仍然存在然后尝试卸载现有的 JDK 并从此 link.
否则,如果您的测试应用程序似乎工作正常,那么您的项目 JDK 路径或模块设置存在一些问题。尝试重新导入项目并检查 JDK 路径是否提供正确
我一直在尝试分配 256MB 的数组,这产生了 Java 堆 space 异常。我试过了 this solution and it didn't help. So I've been looking for another similar problems and found this。但是,在将堆大小提高到 1377MB 以上后,出现此错误:
Error:Abnormal build process termination: "C:\Program Files (x86)\Java\jdk1.8.0_91\bin\java" -Xmx1377m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\" -Djdt.compiler.useSingleThread=true -Dpreload.project.path=C:/Users/JohnDoe/Documents/CacheTest -Dpreload.config.path=C:/Users/JohnDoe/.IntelliJIdea2016.1/config/options -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=-2473188797876308560 -Dfile.encoding=windows-1250 -Djps.file.types.component.name=FileTypeManager -Duser.language=en -Duser.country=US -Didea.paths.selector=IntelliJIdea2016.1 "-Didea.home.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.1" -Didea.config.path=C:\Users\JohnDoe.IntelliJIdea2016.1\config -Didea.plugins.path=C:\Users\JohnDoe.IntelliJIdea2016.1\config\plugins -Djps.log.dir=C:/Users/JohnDoe/.IntelliJIdea2016.1/system/log/build-log -Djava.io.tmpdir=C:/Users/JohnDoe/.IntelliJIdea2016.1/system/compile-server/temp -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"C:\Users\JOHNDO~1\AppData\Local\Temp\kotlin-idea-1150430122745838-is-running\" -classpath "C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jps-launcher.jar;C:/Program Files (x86)/Java/jdk1.8.0_91/lib/tools.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/optimizedFileManager.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/ecj-4.5.2.jar" org.jetbrains.jps.cmdline.Launcher "C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/resources_en.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/oromatcher.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/protobuf-2.5.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jsr166e.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/asm-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/util.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/javac2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/annotations.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jna-platform.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/nanoxml-2.2.3.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jps-builders.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/trove4j.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/rt/jps-plugin-system.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jps-model.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/forms_rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jna.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/idea_rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/netty-all-4.1.0.Beta8.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jgoodies-forms.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jdom.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/log4j.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/picocontainer.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/snappy-in-java-0.3.1.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/openapi.jar;;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/commons-io-1.4.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-base-services-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-base-services-groovy-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-cli-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-core-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-messaging-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-model-core-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-model-groovy-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-native-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-resources-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-tooling-api-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-tooling-extension-api.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-tooling-extension-impl.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-wrapper-2.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/guava-jdk5-17.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/jna-3.2.7.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/jsr305-1.3.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/kryo-2.22.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/minlog-1.2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/native-platform-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/native-platform-freebsd-amd64-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/native-platform-freebsd-i386-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/native-platform-linux-amd64-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/native-platform-linux-i386-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/native-platform-osx-amd64-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/native-platform-osx-i386-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/native-platform-windows-amd64-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/native-platform-windows-i386-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/objenesis-1.2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/reflectasm-1.07.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/resources_en.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/gson-2.5.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/ant/lib/ant-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/devkit/lib/devkit-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/uiDesigner/lib/jps/ui-designer-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/IntelliLang/lib/intellilang-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/Groovy/lib/groovy-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/Groovy/lib/groovy-rt-constants.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/eclipse/lib/eclipse-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/eclipse/lib/common-eclipse-util.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/maven/lib/maven-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/maven/lib/maven3/lib/plexus-utils-2.0.6.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/osmorc/lib/osmorc-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/osmorc/lib/bndlib-3.0.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/osmorc/lib/bndlib-plugins-3.0.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/osmorc/lib/plexus-utils-3.0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/osmorc/lib/bundlor-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/aspectj/lib/aspectj-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/flex/lib/flex-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/flex/lib/flex-shared.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/gradle-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/JavaEE/lib/jps/javaee-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/JavaEE/lib/jps/jpa-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/weblogicIntegration/lib/jps/weblogic-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/dmServer/lib/dmServer-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/GwtStudio/lib/gwt-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/GoogleAppEngine/lib/google-app-engine-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/GoogleAppEngine/lib/appEngine-runtime.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/Grails/lib/grails-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/Grails/lib/grails-compiler-patch.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/android/lib/jps/android-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/android/lib/jps/android-gradle-jps.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/android/lib/android-common.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/android/lib/android-rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/android/lib/sdk-common.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/android/lib/sdklib.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/android/lib/common.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/android/lib/jarutils.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/android/lib/layoutlib-api.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/android/lib/manifest-merger.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/Kotlin/lib/kotlin-runtime.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/Kotlin/lib/kotlin-reflect.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/Kotlin/lib/kotlin-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/Kotlin/lib/kotlin-android-extensions-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/Kotlin/lib/kotlin-android-extensions-compiler-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/javaFX/lib/javaFX-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/javaFX/lib/common-javaFX-plugin.jar" org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 60896 96c068b6-4d3b-4924-a696-9af1caab47b3 C:/Users/JohnDoe/.IntelliJIdea2016.1/system/compile-server
我找到了很多此类问题的答案,但所有这些答案都告诉我降级我的 NVIDIA 驱动程序,我无法做到,而且对我来说根本没有意义。我正在寻找的是某种解释为什么会发生这种情况以及我可以做些什么来解决它。
注意:我使用的是 x64 IDEA。
将您的项目 JSDK 更改为 64 位版本,您正在构建 运行 32 位 JDK,现在不能在 Windows 上分配超过 2GB 的内存。由于其他 JVM 要求,32 位 JVM 的实际最大堆大小通常在 512m 和 1024m 之间。
您可以在 IntelliJ IDEA FAQ and in this answer 中找到更多详细信息。
我也遇到了同样的问题。在我的例子中,Android 支持未启用(文件 >> 设置 >> Android 支持)。启用并重新启动 Android Studio 后一切正常。
我正在使用 Windows x64 位机器。我遇到了类似的问题。我的建议是首先创建一个简单的 java 应用程序并尝试执行它,如果您发现问题仍然存在然后尝试卸载现有的 JDK 并从此 link.
否则,如果您的测试应用程序似乎工作正常,那么您的项目 JDK 路径或模块设置存在一些问题。尝试重新导入项目并检查 JDK 路径是否提供正确