Kotlin butterknife build error @BindView fields must not be private or static
问题描述:在kotlin中使用Butterknife时出现:@BindView fields must not be private or static.解决办法,在注解上加上 @JvmField,如下: @JvmField @BindView(R2.id.top_title) var topTitle: TextView? = null即可解决...
原创
2020-10-04 09:32:31 ·
1554 阅读 ·
0 评论