Kotlin butterknife build error @BindView fields must not be private or static
-
如何添加butterknife
请参考链接https://blog.youkuaiyun.com/qq_41063141/article/details/82828047 -
添加注解 @JvmField
@JvmField
@BindView(R.id.ll_yijian)
var llYijian: LinearLayout? = null
本文介绍了解决Kotlin使用ButterKnife时遇到的@BindView字段不能为私有或静态的问题。通过添加@JvmField注解,可以正确地在Kotlin中使用ButterKnife绑定视图。
1187

被折叠的 条评论
为什么被折叠?



