Jenkins 构建失败,条带无法确定任务 ':stripe:check' 的依赖项
Jenkins build failed with stripe Could not determine the dependencies of task ':stripe:check'
我试图使用 Jenkins 构建一个 android apk,但我遇到了一条失败消息 -
app: 'annotationProcessor' dependencies won't be recognized as kapt annotation
processors. Please change the configuration name to 'kapt' for these artifacts:
'com.android.databinding:compiler:3.1.0'.
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':stripe:check'.
Task with path 'checkstyle' not found in project ':stripe'.
我在我的项目中添加了第三方模块条带,在应用级别 gradle 文件条目是 -
implementation project(':stripe')
我不知道使用 jenkins 进行构建时出现的问题一直在失败。
注意 - 下面是我的条纹的 gradle 文件 -
apply plugin: 'com.android.library'
apply plugin: 'checkstyle'
// make sure this line comes *after* you apply the Android plugin
apply plugin: 'com.getkeepsafe.dexcount'
assemble.dependsOn('lint')
check.dependsOn('checkstyle')
您正在使用 kotlin 编译器,在 kotlin 中我们使用 "kapt" 而不是 "annotationProcessor"。检查您的 "Stripe" 项目并相应地更改 gradle。
从 stripe 的 gradle 中删除以下行并替换所有 app 后:'annotationProcessor' dependencies to kapt , Jenkins 正在生成构建成功。
check.dependsOn('checkstyle')
我试图使用 Jenkins 构建一个 android apk,但我遇到了一条失败消息 -
app: 'annotationProcessor' dependencies won't be recognized as kapt annotation
processors. Please change the configuration name to 'kapt' for these artifacts:
'com.android.databinding:compiler:3.1.0'.
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':stripe:check'.
Task with path 'checkstyle' not found in project ':stripe'.
我在我的项目中添加了第三方模块条带,在应用级别 gradle 文件条目是 -
implementation project(':stripe')
我不知道使用 jenkins 进行构建时出现的问题一直在失败。
注意 - 下面是我的条纹的 gradle 文件 -
apply plugin: 'com.android.library'
apply plugin: 'checkstyle'
// make sure this line comes *after* you apply the Android plugin
apply plugin: 'com.getkeepsafe.dexcount'
assemble.dependsOn('lint')
check.dependsOn('checkstyle')
您正在使用 kotlin 编译器,在 kotlin 中我们使用 "kapt" 而不是 "annotationProcessor"。检查您的 "Stripe" 项目并相应地更改 gradle。
从 stripe 的 gradle 中删除以下行并替换所有 app 后:'annotationProcessor' dependencies to kapt , Jenkins 正在生成构建成功。
check.dependsOn('checkstyle')