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.