Android's hottest rapid development framework Androidannotations configuration

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.