为什么在管道上运行Android Lint会给出不同的警告?

为什么在管道上运行Android Lint会给出不同的警告?,android,lint,android-lint,Android,Lint,Android Lint,我已经在我的应用程序模块上使用配置xml启用了Android Lint,并使用这些启用的规则创建了基线 lintOptions { checkReleaseBuilds false abortOnError true ignoreTestSources true lintConfig rootProject.file('config/lint.xml') baseline file("${project.p

我已经在我的
应用程序
模块上使用配置xml启用了Android Lint,并使用这些启用的规则创建了基线

lintOptions {
        checkReleaseBuilds false
        abortOnError true
        ignoreTestSources true
        lintConfig rootProject.file('config/lint.xml')
        baseline file("${project.projectDir}/baselines/android-lint-baseline-${getCurrentFlavor()}.xml")
}
如果我在IDE上运行
code>runinspection By Name>Restricted Api
,它将在发布目标上运行,并将发现这种情况

我可以检查哪些可能性?为什么
lintDebug
lintrease
会给出不同的结果

提前谢谢
<?xml version="1.0" encoding="UTF-8"?>
<lint>
    <issue id="FindViewByIdCast" severity="error" />
    <issue id="MissingSuperCall" severity="error" />
    <issue id="UsesMinSdkAttributes" severity="error" />
    <issue id="AaptCrash" severity="error" />
    <issue id="GradleCompatible" severity="error" />
    <issue id="HardcodedText" severity="error" />
    <issue id="RestrictedApi" severity="error" />

</lint>
Error: Fragment.getLayoutInflater can only be called from within the same library group prefix (referenced groupId=androidx.fragment with prefix androidx from groupId=android) [RestrictedApi]
              LayoutInflater layoutInflater = getLayoutInflater(null);