(Java. Lang. noclassdeffounderror:) unable to resolve superclass of lcom

Source: Internet
Author: User

When performing operations on a map, it may take me almost two things but it may take me a little time to get started:

If you search for the above error, you will find out how to use the jar package, delete the package, and then re-load ...... This will solve the problem.

However, when you encounter this error, there should be a sentence out of brackets: unable to resolve superclass of lcom

Solution:

View the error cause in ddms:
05-23 03:07:09. 844: Warn/dalvikvm (992): unable to resolve superclass of lcom/join/Joy/earthquakedetailsview; (14)
05-23 03:07:09. 844: Warn/dalvikvm (992): link of class 'lcom/join/Joy/earthquakedetailsview; 'failed
03:07:09-23. 854: Error/dalvikvm (992): cocould not find class 'com. join. joy. earthquakedetailsview ', referenced from method com. join. joy. earthquakewatcher $1. onitemlongclick
The error is that the class inherited from mapactivity cannot be found, but the previous warning message "unable to resolve superclass of" is returned"
The reason is that the superclass of this class cannot be found.
Because Google map uses classes related to Google Map, and Google map is a separate library, it must be imported before use,
Therefore, add <Application> </Application> in the manifest. xml file
<Uses-library Android: Name = "com. Google. Android. Maps"/>

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.