0
我正在使用NewerVersionAvailable
lint检查来确定较新的依赖关系版本。但是看起来这个检查仅对compile
依赖关系有用。我认为我们不需要尽快更新junit
。如何禁用此检查单独的依赖类型?这是无聊加//noinspection
每个testCompile依赖Android lint:如何禁用“NewerVersionAvailable”检查testCompile的依赖关系?
例如
dependencies {
compile 'com.android.support:support-annotations:25.0.0' // should warn
testCompile 'junit:junit:4.12' //shouldn't warn
}
最多:
lintOptions {
...
warning 'NewerVersionAvailable'
}
如何添加检查“NewerVersionAvailable”。请发送代码 –
@SagarTrehan。更新。谢谢 –