【问题标题】:> Unable to create listeners: formatters {[com.puppycrawl.tools.checkstyle.ant.CheckstyleAntTask$Formatter@1326df32> 无法创建侦听器:格式化程序 {[com.puppycrawl.tools.checkstyle.ant.CheckstyleAntTask$Formatter@1326df32
【发布时间】:2020-01-06 01:03:14
【问题描述】:

我在 android 项目中集成了 checkstyle。但我收到以下错误:

> Unable to create listeners: formatters {[com.puppycrawl.tools.checkstyle.ant.CheckstyleAntTask$Formatter@1326df32, com.puppycrawl.tools.checkstyle.ant.CheckstyleAntTask$Formatter@6351e12b]}.

我已将 checkstyle.xml 文件放入 config/checkstyle 目录中。

并已将preBuild.dependsOn('checkstyle') 添加到build.gradle 文件中。

任何帮助!

【问题讨论】:

    标签: java android gradle android-gradle-plugin checkstyle


    【解决方案1】:

    当我遇到同样的错误时,通常 toFile 文件夹丢失或路径错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-08
      • 2021-09-06
      • 1970-01-01
      • 2021-09-12
      • 2022-07-01
      • 1970-01-01
      相关资源
      最近更新 更多