ClassNotFoundException on AndroidAnnotations generated classes since update to ADT 22

旧巷老猫 提交于 2019-11-27 22:55:42

Go to the "Order And Export" tab of "Configure Build Path" and click the check mark next to all of your required libraries

Andry

Here is the solution :

  1. In Eclipse, right click on the Project name and choose Properties

  2. Select Order and Export tab, then make sure that the Android Private Libraries is checked

  3. Clean your project, from Project -> Clean

This should work

I had the same issue and for me it was due to the "Allow output folder for source folder" option in the project "java build path". I unchecked it, and checked it again and the problem was gone. For whatever reason the path used was different to the default one. Maybe it is due to m2e android.

I'd had a similar problem - turned out that there was a JAR mismatch of the support library included in a references project which was causing the problem. Making sure that each project was using the same version of the support library fixed it for me.

Popping in here with an answer in case someone is having this issue in the future. I added ActionBarCompat to my app which was using AndroidAnnotations and was having this same issue. It turns out that all of the libraries which are being used by a particular application need to live within the parent app. So, even though ABC was a library project within Eclipse and the code compiled, I still needed to include ABC as a library within my application.

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