Using R2 is only necessary for creating Android library projects.
https://github.com/JakeWharton/butterknife#library-projects
This is because the values ββin the generated R.java class are not declared as "final" when built as part of the library. The annotations used for @BindView () require that these R. values ββbe final and not subject to change later.
I am sure that someone can explain all this better, but in the end - you just use "R." just fine values ββin @BindView app in Android app
source share