AndroidAnnotations Eclipse configuration with ADT 23

核能气质少年 提交于 2019-12-05 16:16:42

This is a known problem of the ADT bundle, and will be fixed as of ADT 23.0.3. In the meantime, you can fix this by downloading a standard Eclipse distribution and installing the ADT plugin to that. Or if you want to use your existing ADT bundle, you can install the necessary JDT plugin as described here.

Also please note that you do not have to add the androidannotations-X.X.X-api.jar as you written in the OP. You have to add the androidannotations-X.X.X.jar to the annotation processing factories and androidannotations-X.X.X-api.jar to your classpath (libs).

i am using ADT23 with Eclipse Luna. Go to your project properties and select Java Compiler and select you Compiler Compliance Level to 1.6. Then your Annotation Processing option will be enable. Create a folder compile-libs in your project, where your lib folder and paste jar file androidannotations-3.0.1.jar this location compile-libs\androidannotations-3.0.1.jar .

Add androidannotations-api-3.0.1.jar in your project libs\androidannotations-api-3.0.1.jar .

Finally, you must add both file path in your Factory Path. e.g {Your Project}/compile-libs/androidannotations-3.0.1.jar and {Your Project}/libs/androidannotations-api-3.0.1.jar

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