Java运行时问题,但构建项目没有错误

时间:2015-07-24 02:53:40

标签: java android

当我构建项目时,没有错误,但是当我运行项目时,会出现如下错误:

Invalid layout of java.lang.String at value
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (javaClasses.cpp:127), pid=8228, tid=6992
#  fatal error: Invalid layout of preloaded class
#
# JRE version:  (8.0_45-b15) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\User\Desktop\Eclipse_Projects\LookAtMe2_source\Test.LookAtMe.Data\hs_err_pid8228.log

在hs_err_pid8228.log文件中:

A fatal error has been detected by the Java Runtime Environment:
Internal Error (javaClasses.cpp:127), pid=8228, tid=6992
 fatal error: Invalid layout of preloaded class
JRE version:  (8.0_45-b15) (build )
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode windows-amd64 compressed oops)
Failed to write core dump. Minidumps are not enabled by default on client versions of Window

1 个答案:

答案 0 :(得分:0)

试试这个:

Run As -> Android Application

来自here