java.lang.NoClassDefFoundError when crouton library in eclipse

匆匆过客 提交于 2019-12-05 22:09:24

If you don't need any of the new features in Crouton 1.8.2, try 1.8.1 (https://github.com/keyboardsurfer/Crouton/wiki/Changelog). I have the exact same problem, however everything works when I use 1.8.1. I've been struggling with this same issue also, and have not yet found a solution. I'm wondering if it has something to do with the fact that it's using Java 1.7 now...

Crouton 1.8.3 has been released and rolled back to Java 6 source compatibility. Using this version should solve the issue.

Go to Project->Properties->Java Build Path than select Order and export tab. Set android-support-v4.jar library checked and up it into top of the list. And then clean and rebuild project.

Right Click on Your Project> choose Build Path> Configure Build Path> Go to Order & Export Tab and do check the crouton-1.8.2.jar(the jar you added for crouton )At last OK.

Then try clean the project and Run again.

This is probably due to an incompatibility between your build system and the way the jar file was created. The Crouton library only consists of a single package, so it is very easy to add it in your application and get rid of the jar. Just add the code under this folder in your project. You only need the latest SDK and you are good to go.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!