Open ythy opened 6 years ago
注意
Gradle内所有的 apt
都要替换成 kapt
不管相关文件用没用到Kotlin, 否则编译报错
官方:
If you previously used the Android support for annotation processors, replace usages of the annotationProcessor configuration with kapt. If your project contains Java classes, kapt will also take care of them.
kotlin-gradle-plugin 版本不能是
1.0.0
Use kapt instead of annotationProcessor(apt) for the compiler dependency.
compile 'com.jakewharton:butterknife:8.4.0' kapt 'com.jakewharton:butterknife-compiler:8.4.0'