IT노트(구)/Java

(안드로이드) Invalid layout of java.lang.String at value.. 에러가 나는 경우

스프링연구소 2016. 1. 18. 17:14

갑자기 다음과 같은 괴상한(?) 에러가 나면서

안드로이드 실행이 되지 않는 경우가 있습니다!


Invalid layout of java.lang.String at value

A fatal error has been detected by the Java Runtime Environment:

Internal Error (javaClasses.cpp:129), pid=15238, tid=140306591237888
fatal error: Invalid layout of preloaded class

 JRE version: 7.0_07-b10
 Java VM: Java HotSpot(TM) 64-Bit Server VM (23.3-b01 mixed mode linux-amd64 compressed ops)
 Failed to write core dump. Core dumps have been disabled. To enable core dumping, try ulimit -c unlimited" before starting Java again

 An error report file with more information is saved as:
 /home/till/workspace/Encrypt/hs_err_pid15238.log

 If you would like to submit a bug report, please visit:
   http://bugreport.sun.com/bugreport/crash.jsp


다양한 원인이 있을 수 있겠지만

가장 먼저 확인할 부분은 Run As 부분입니다.

혹시 Java Application으로 계속 실행하고 있는 것은 아닌지 확인할 필요가 있습니다.(Run As -> Android Application을 해주면 해결됩니다!)