Android SonarQube Integration Error: 错误:执行任务 ‘:app:compileDebugJavaWithJavac’ 失败

huangapple 未分类评论46阅读模式
英文:

Android SonarQube Integration Error: Error: Execution failed for task ':app:compileDebugJavaWithJavac'

问题

以下是 gradle 设置,显示了 SonarQube 属性。版本为 2.7。在运行 gradlew sonarqube 命令后出现错误。

sonarqube {
    properties {
        property "sonar.projectName", "com.app.clim"
        property "sonar.projectKey", "com.app.clim"
        property "sonar.sourceEncoding", "UTF-8"
        property "sonar.profile", "Android Lint"
        property "sonar.sources", "./src/main/java"
        property "sonar.exclusions", "build/**,**/*.png"
        property "sonar.import_unknown_files", true
        property "sonar.android.lint.report", "./build/slf/lint-results.xml"
    }
}
英文:

Here is the gradle settings showing the sonarqube properties. version is 2.7. the error is thrown after running gradlew sonarqube command

           sonarqube {
           properties {
                property "sonar.projectName", "com.app.clim"
                property "sonar.projectKey", "com.app.clim"
                property "sonar.sourceEncoding", "UTF-8"
                property "sonar.profile", "Android Lint"
                property "sonar.sources", "./src/main/java"
                property "sonar.exclusions", "build/**,**/*.png"
                property "sonar.import_unknown_files", true
                property "sonar.android.lint.report", "./build/slf/lint-results.xml"
             }
           }

huangapple
  • 本文由 发表于 2020年4月8日 19:08:34
  • 转载请务必保留本文链接:https://java.coder-hub.com/61099275.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定