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

标签 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

最佳答案

试试这个:

Run As -> Android Application

来自here .

关于Java运行时问题,但是构建项目没有错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31601423/

相关文章:

java - 扩展 JFrame

java - GridBagLayout - 无法放置没有 anchor 的组件

java - 如何将 PATH 环境变量设置为指向 JRE 1.5 版

android - 如何设置 Intent 过滤器仅在发送联系人时发送操作?

java - 如何使用 HashMap 值形成字符串?

java - Jersey 在 post 提交时无法添加参数

android - 如何设置 View 的背景颜色

android - EditText.getText Java.lang 空指针异常

java - 如何在 Java/Android 中使用 OAuth 通过 Gmail 发送电子邮件?

java - 如何获取通过 execSQL() 或 rawQuery() SQLite 调用的更新的受影响行?