Butterknife: cannot add butterknife on separate android module

Created on 28 Mar 2015  路  2Comments  路  Source: JakeWharton/butterknife

im separating my app in different modules in a same android project, i want to use butterknife in one of the modules, but it doesn`t recognize the command @InjectView(R.id.something), i can move everything to one module again and it works fine, but in a separate module it his own graddle and all the config setted up, it just not working, is like a conflict with the R object or something like that.

All 2 comments

Butter Knife does not support library projects because the R.id constants are not final. This is a limitation of Java's annotations and the Android SDK. Nothing we can do about it, sorry.

@JakeWharton
Are there any updates on this issue? What is the alternative?

Was this page helpful?
0 / 5 - 0 ratings