The above problem comes when multiple versions of the same jar file is used in the project (including the library project if added).The best practice is to delete the previous jar files and add a fresh updated same jar file in all the corresponding projects.
Refer this post, https://stackoverflow.com/a/12045627/1665507