AndroidAnnotations安裝設定

設定Eclipse

Please note that there are two important JARs in AndroidAnnotations:

成都创新互联公司-专业网站定制、快速模板网站建设、高性价比颍州网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式颍州网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖颍州地区。费用合理售后完善,十载实体公司更值得信赖。

  • androidannotations-X.X.X-api.jar 要加入至專案的Lib

  • androidannotations-X.X.X.jar只有在編譯APK的時候才會用到

步驟

  1. androidannotations-X.X.X-api.jar放置libs資料夾

  2. androidannotations-X.X.X.jar 放置不同的資料夾,不用放在libs裡面

  3. 在專案上點擊右鍵 > "Properties"

  4. 點擊Java Compiler ,JDK要在1.6以上

  5. Java Compiler > Annotation Processing 選擇 Enable annotation processing

  6. Java Compiler > Annotation Processing > Factory Path and add the processor JAR : androidannotations-X.X.X.jar.

  7. 確定專案有重建

  8. Java Build Path > Libraries and add the API JAR : androidannotations-X.X.X-api.jar

  9. 開始使用AndroidAnnotations


网页标题:AndroidAnnotations安裝設定
文章分享:http://scyanting.com/article/pepoeo.html