首页
科技
登录
6mi
u
盘
搜
搜 索
科技
Kotlin butterknife build error @BindView fields must not be private or static
Kotlin butterknife build error @BindView fields must not be private or static
科技
2022-07-12
123
问题描述: 在kotlin中使用Butterknife时出现:
@BindView fields must not be private or static.
解决办法,在注解上加上 @JvmField,如下:
@JvmField @BindView(R2.id.top_title) var topTitle: TextView? = null
即可解决
转载请注明原文地址:https://blackberry.8miu.com/read-4533.html
最新回复
(
0
)