0

I have upgraded Android Gradle Plugin to 7.4.

Now getting warning lintOptions are deprecated.

lintOption Deprecated

What alternative is to be used for this?

Rumit Patel
  • 8,830
  • 18
  • 51
  • 70

1 Answers1

1

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.

Rumit Patel
  • 8,830
  • 18
  • 51
  • 70