I have upgraded Android Gradle Plugin to 7.4
.
Now getting warning lintOptions
are deprecated.
What alternative is to be used for this?
I have upgraded Android Gradle Plugin to 7.4
.
Now getting warning lintOptions
are deprecated.
What alternative is to be used for this?
We can use the new Lint
block.
The old lintOptions
block is deprecated in Android Gradle Plugin 7.2
and replaced by the new Lint
block. We can simply replace it and use it in the app-level build.gradle
file like the below example.
Example:
lint {
disable 'MissingTranslation'
abortOnError false
}
Most of the properties are the same as previously but you can check Summary and Public properties.