Previously introduced to you xutils is the rapid development of domestic comparison of the framework, but its annotation mechanism is not too stable and the annotations are also relatively small, today to introduce a foreign framework mainly focused on the development of annotations, simplified Android code writing, because configuration considerations are more complex, So let's introduce the configuration in detail:
GIT website: https://github.com/excilys/androidannotations
Download the unpacked directory as above, Androidannotations is the source project, example is an example project,
Open the \examples\helloworldeclipse as follows:
Copy the Compile-libs folder to your own project root directory and open the Libs folder to copy Androidannotations-api-3.0.1.jar
To your project's Libs folder. As follows:
Select your own project Project->properties->java build Path->libraries->add jars Add Androidannotations-api-3.0.1.jar in
As follows:
Open Java compiler, check enable project specific settings settings compiler compliance level 1.6, as follows:
Then select annotation processing to select the Enable annotation processing as follows:
then expand annotation processing Select Factory Path->add jars Add the compile-libs under Androidannotation-xxx.jar. As follows:
Androidannotation-xxx.jar is a project-compiled file,Androidannotations-api-3.0.1.jar is an API call file.
Precautions:
If you need to confuse packaging, add it in Proguard-project.txt:-dontwarn org.springframework.**
If you have any questions, please leave a message, reproduced the source.