Kotlin与Java混编,ButterKnife编译异常

1、nullpoint
针对此问题,只需将annotationProcessor com.jakewharton:butterknife-compiler:x.x.x
改为apt com.jakewharton:butterknife-compiler:x.x.x即可

kotlin项目:

plugins {
id ‘com.android.application’
id ‘kotlin-android’
id ‘kotlin-kapt’
}

2、https://blog.csdn.net/lky199024/article/details/75309776

3、如果配置都正常有可能是转AndroidX之后,使用了AppcompatActivity,但是manifest文件的style不是Appcompat

Leave a Reply

Your email address will not be published. Required fields are marked *