代码之家  ›  专栏  ›  技术社区  ›  Bajrang Hudda

Jenkins build失败,stripe无法确定任务的依赖项:stripe:check

  •  0
  • Bajrang Hudda  · 技术社区  · 6 年前

    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')
    

    我不知道为什么詹金斯一直在失败。

    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')
    
    2 回复  |  直到 6 年前
        1
  •  0
  •   Jayesh Khasatiya    6 年前

    您使用的是kotlin编译器,在kotlin中,我们使用“kapt”而不是“annotationProcessor”。检查你的“条纹”项目和相应的改变梯度。

        2
  •  0
  •   Bajrang Hudda    6 年前

    在从条纹渐变中移除下线并替换所有 木棉 ,Jenkins正在成功生成生成生成。

    check.dependsOn('checkstyle')