If you create a class that contains the main () method in the android project and right-click the class to run the class, the following error will be reported: shouldnotreachhere ()

Source: Internet
Author: User
[Problem Solving] error: shouldnotreachhere () [sorting]
    Blog type: 

  • Android
Android

If you create a class that contains the main () method in the android project and right-click the class to run the class, the following error is reported:

# A fatal error has been detected by the Java Runtime Environment: # Internal error (classfileparser. cpp: 3494), pid = 5940, tid = 5632 # error: shouldnotreachhere ()
The specific cause is unknown, maybe because The main () conflicts with the main portal (activity) of Android.For more information, see this article: errors in Android
Error: shouldnotreachhere ()
Solution (reference ):1. right-click the project and choose run as> run commands... 2. find the project you just run in Java aplication (or your corresponding category). If not, you can manually create or run the class once. 3. switch to the classpath option bar, delete the android library in Bootstrap entries, and click advanced on the right .. -> Add library-> JRE system library, all the way to next.
Then run the class to run normally.
Related Article

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.