Error:shouldnotreachhere () (Android)

Source: Internet
Author: User

Creating a class in an Android project that contains the main () method will report the following error when you right-run the class:

#
# A Fatal error has been detected by the Java Runtime environment:
#
# Internal Error (classfileparser.cpp:3470), pid=5980, tid=7504
# Error:shouldnotreachhere ()
#
# JRE version:7.0-b147
# Java Vm:java HotSpot (TM) Client VM (21.0-b17 mixed Mode windows-x86)
# Failed to write core dump. Minidumps is not enabled by default on client versions of Windows
#

The reason may be that main () is in conflict with the Android portal (OnCreate ()).

Workaround:

1. Select Project, right-click Run as--run configurations ...

2. In Java aplication (or your corresponding classification) find the project you just run, you can manually create or run the class once;

3. Switch to the CLASSPATH option bar, delete the Android library in the bootstrap entries, then click on the right side of the advanced: JRE System, Add Library Library, all the way next.


Then run the class again and it will work.

Error:shouldnotreachhere () (Android)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.