gpt4 book ai didi

android - Gradle Jenkins Lint 报告

转载 作者:行者123 更新时间:2023-11-29 01:43:43 26 4
gpt4 key购买 nike

请帮忙。当我在终端中运行命令 gradle lint 时,我看到以下输出:

:facebook:lint                 
Ran lint on variant release: 65 issues found
Ran lint on variant debug: 65 issues found
Wrote HTML report to file:new/facebook/build/lint-results.html
Wrote XML report to new\facebook\build\lint-results.xml
:msmandroidapp:lint
Ran lint on variant release: 71 issues found
Ran lint on variant debug: 71 issues found
Wrote HTML report to file:new/msmandroidapp/build/l
int-results.html
Wrote XML report to new\msmandroidapp\build\lint-results.xml
:ringprogress:lint
Ran lint on variant release: 4 issues found
Ran lint on variant debug: 4 issues found
Wrote HTML report to file: new/ringprogress/ringprogress/build/lint-results.html
Wrote XML report to new\ringprogress\ringprogress\build\lint-results.xml

我只关心 :msmandroidapp:lint 结果。它显示 找到 71 个问题

但是,当我从 Jenkins 运行相同的程序时,我发现 较少 检测到 :msmandroidapp:lint 的问题(仅 67 个)。我查看了报告,发现在报告中我也有 67 个问题。下面是一段 html 报告:

Lint Report
Check performed at Tue Apr 01 14:35:13 FET 2014.
8 errors and 59 warnings found:

那么检测到的问题数量的差异来自哪里?也许它们被其他项目覆盖了?

最佳答案

这可能是一个 lint 版本控制问题。您使用的 Android lint Jenkins 插件可能与当前的 Android SDK lint 工具不是同一个版本。这意味着 Jenkins lint 可能会让某些事情“通过”,您的本地 Android SDK lint 会将相同的代码标记为错误。

关于android - Gradle Jenkins Lint 报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22785395/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com