1. 程式人生 > >Android開發之Android studio 3.2.1配置androidannotations

Android開發之Android studio 3.2.1配置androidannotations

androidannotations,Butterknife 元件等大大的提高了開發效率,但在配置androidannotations 的時候卻出現了問題,根據根據網上的資料配置 annotationProcessor “org.androidannotations:androidannotations: A A V e r

s i o n " i m p l e m
e n t a t i o n " o r
g . a n d r o i d a n n o t a t i o n s : a n d r o i d a n n o t a t i o n s a p i : AAVersion" implementation "org.androidannotations:androidannotations-api: AAVersion”
這裡AAVersion 配置的是4.4.0,但執行的時候報錯 Compilation failed; see the compiler error output for details,後來進androidannotations的官方(https://github.com/androidannotations/androidannotations/wiki)在右下角看到最新的版本,將AAVersion 改為最新的版本就ok了。