Android java. Lang. noclassdeffounderror: org. androidpn. Client. servicemanager

Source: Internet
Author: User

In our development, we often need to add some jar packages, but sometimes some exceptions that cannot find the class will be reported inexplicably, such:

This is what I met when I was doing message push. In fact, we also encountered this when I was developing a map application. Why? It is actually because of the ADT version,

To sum up, add the jar package to the libs directory of the project by importing the jar package to adt18 without adding to build path, the system automatically adds the jar package under libs to the build path (which is actually added to the library of Android dependencies ).
The android dependencies library has been deleted, and the jar package has been repeatedly deleted and pasted to the libs directory, or the libs directory has been deleted several times. The system will automatically add it again.

So when we develop applications, we try to useLibsFolder, so you don't have to take into account the ADT version. If it doesn't work after modification, just clean it a few times.



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.