在我的应用程序模块的build.gradle中,我添加了kapt('com.android.databinding:compiler:3.1.2')}
但是我仍然收到编译器的警告app: 'annotationProcessor' dependencieswon't be recognized as kapt annotation proce
> Configure project :
TitanCompanion: 'annotationProcessor' dependencieswon't be recognized as kaptPlease change the configuration name to 'kapt' for these artifacts: 'com.android.databinding:compiler:3.
incompatible and 1 stopped Daemons could not be reused, use --status for details
> Configure project :appapp: 'annotationProcessor' dependencieswon't be recognized as kapt annotation processors.Please change
更多--堆栈跟踪输出org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app$default(annotationProcessing.kt:35)
at org.jetbrains.kotlin.kapt3.base.Kapt.kapt(Kapt.kt:45)java.lang.ClassNotFoundException: org.antlr.v4.run
自从我开始为安卓使用Kotlin,我停止使用"annotationProcessor“并开始使用" kapt ",所有的事情都在使用kapt,直到我开始构建一个Android,当我将"kapt”添加到任何依赖项中,比如Glide或ButterKnife Gradle,都会显示错误,但是无法找到方法kapt()
Could not find method kapt() for arguments [com.github.bumptech.glideg