Android's most popular quick development framework: androidannotations

Source: Internet
Author: User

Android's most popular quick development framework: androidannotations

The previously introduced xUtils is a fast development framework in China, but its annotation mechanism is not too stable and there are few annotations available, today, I will introduce you to a foreign framework that focuses on Annotation development and simplifies Android code writing. Because the configuration precautions are complicated, I will introduce the configuration in detail:

Git Website: https://github.com/excilys/androidannotations


After downloading and decompressing the directory, AndroidAnnotations is the source code project, and example is the example project, <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + tPK/qlxleGFtcGxlc1xIZWxsb1dvcmxkRWNsaXBzZSzI58/Co7o8L3A + CjxwPjxpbWcgc3JjPQ = "http://www.2cto.com/uploadfile/Collfiles/20140822/2014082208383143.png" alt = "\">

Copy the compile-libs folder to your project root directory, open the libs folder copy androidannotations-api-3.0.1.jar

Go to the libs folder of your project. As follows:


Select your project-> properties-> Java build path-> libraries-> add jars to add androidannotations-api-3.0.1.jar

As follows:


Open Java compiler and select enable project specific settings to set compiler compliance level 1.6 or above, as shown below:


Then select annotation processing and select enable annotation processing, as follows:


Expand annotation processing select factory path-> add jars to add androidannotation-xxx.jar under compile-libs. As follows:


The androidannotation-xxx.jar is the project compilation file, and the androidannotations-api-3.0.1.jar is the api call file.

Note:

If zookeeper is packaged, add:-dontwarn org. springframework. ** in proguard-project.txt .**

If you have any questions, please leave a message and repeat the source.


Related Article

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.