看来问题不是来自jenkins。
在错误消息中,我注意到确切的问题来自“annotations processing”
app: 'annotationProcessor' dependencies won't be recognized as kapt annotation processors. Please change the configuration name to 'kapt' for these artifacts: 'com.github.bumptech.glide:glide:4.9.0'
在您的应用构建gradle 文件中添加kotlin kapt 插件
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
确保您在根build.gradle 中添加了kotlin-gradle-plugin 类路径
buildscript {
dependencies {
...
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
将annotationProcessor 替换为kapt
代替
dependencies {
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
}
应该是
dependencies {
implementation 'com.github.bumptech.glide:glide:4.12.0'
kapt 'com.github.bumptech.glide:compiler:4.12.0'
}