AndroidAnnotations安裝設定

設定Eclipse

Please note that there are two important JARs in AndroidAnnotations:

  • 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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章