| 2 | | [http://androidannotations.org AndroidAnnotations在编译时动态注解IOC框架,不会产生性能损耗] 官方列举出的所有使用例子[https://github.com/excilys/androidannotations/wiki/AvailableAnnotations][[BR]] |
| | 2 | ---- |
| | 3 | == AndroidAnnotations == |
| | 4 | 这个IOC框架在编译时动态注解,不会产生性能损耗[[BR]] |
| | 5 | [http://androidannotations.org AndroidAnnotations 官网][[BR]] |
| | 6 | [https://github.com/excilys/androidannotations/wiki/Download 下载和环境搭建的地址][[BR]] |
| | 7 | [https://github.com/excilys/androidannotations/wiki/AvailableAnnotations 官方列举出的所有使用例子][[BR]] |
| | 8 | [https://github.com/excilys/androidannotations/wiki/CustomizeAnnotationProcessing Maven仓库和gradle的配置参数][[BR]] |
| | 9 | 目前开发中遇到的问题整理:[[BR]] |
| | 10 | 1.在eclipse中配置的时候,解压出来的androidannotations-3.2.jar和androidannotations-api-3.2.jar两个jar中存在重复包,导致用gradle打包编译的时候报错[[BR]] |
| | 11 | 解决方法:只用androidannotations-3.2.jar这个包(因为它已经包含了androidannotations-api-3.2.jar),然后右键工程->Properties->Java Complier->Annoation Processin->Factory Path,导入工程中的androidannotations-3.2.jar,保存[[BR]] |
| | 12 | 2.需要注意的问题[[BR]] |
| | 13 | 使用了AndroidAnnotations后,注册文件AndroidManifest.xml的组件后面要加下划线,例:android:name=".personal.SettingActivity(使用前);android:name=".personal.SettingActivity_(使用后);具体可参考官网例子[[BR]] |
| | 14 | ---- |
| | 15 | |