Fatal error by Java runtime environment

前端 未结 12 2163

I am executing a junit test case

I got the following error,

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

Internal Error (classFi         


        
12条回答
  •  情书的邮戳
    2020-12-03 03:24

    I got the same problem, but with alot of googling I found the answer! See this page

    Quote from the link:


    # An unexpected error has been detected by Java Runtime Environment:
    #
    #  Internal Error (classFileParser.cpp:2924), pid=5364, tid=6644
    #  Error: ShouldNotReachHere
    
    1. That's because we are using Android's JUnit stub implementation. Go to Run -> Run As -> Run configurations again and in the recently created JUnit configuration Classpath's Bootstrap Entries remove Android Library
    2. Then Add Library, using Advanced... button, and add JRE System Library and JUnit 3
    3. Apply and Run

    Try this, it worked for me.

提交回复
热议问题