Attribute value must be constant
在搜索Attribute value must be constant后得到这样的说明:
Injection does not work in library projects
意为:在AndroidStudio的library的module中无法使用ButterKnife。
——–2017年8月23日更新——–
经lyankj提醒,ButterKnife在8.1.0后期及之后版本中已经对【在library的module中使用butterknife】提供了支持:
图片截于2017/08/23。这是butterknife的GitHub地址。
通过gradle插件的形式可以使得butterknife在library的module中使用。