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.