# Pick lint version

DevFeed: [Pick lint version](<https://devfeed.tech/articles/pick-lint-version-26134.md>)

Original publisher: [Read original article](<https://vadzimv.dev/2021/07/28/calculate-lint-version.html>)

Author: Vadzimv Dev Blog

Published: 2021-07-28T15:00:00Z

Content type: tutorial

Language: en

Sources: [Vadzimv Dev](<https://devfeed.tech/sources/vadzimv-dev-blog.md>)

Topics: [lint](<https://devfeed.tech/topics/lint.md>), [version](<https://devfeed.tech/topics/version.md>), [Android Gradle Plugin](<https://devfeed.tech/topics/android-gradle-plugin.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [Dependency management](<https://devfeed.tech/topics/dependency-management.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-gradle-plugin](<https://devfeed.tech/tags/android-gradle-plugin.md>), [automate](<https://devfeed.tech/tags/automate.md>), [automation](<https://devfeed.tech/tags/automation.md>), [code](<https://devfeed.tech/tags/code.md>), [custom](<https://devfeed.tech/tags/custom.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [google](<https://devfeed.tech/tags/google.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [lint](<https://devfeed.tech/tags/lint.md>), [project](<https://devfeed.tech/tags/project.md>), [properties](<https://devfeed.tech/tags/properties.md>), [version](<https://devfeed.tech/tags/version.md>)

## AI overview

For a custom Android lint rule, the excerpt says the lint dependency version must match the Android Gradle Plugin (AGP) version using the stated convention: add 23 to AGP's major version while keeping the remaining version parts (for example, AGP 4.2.2 gives lint 27.2.2). To avoid recalculating manually after AGP updates, it proposes storing the AGP version in the root project's `ext` properties, parsing it in the lint project, adding 23 to the major version, and using the calculated value in dependencies. The excerpt does not show the code or explain compatibility beyond this convention.

## Source excerpt

How to pick lint dependency version when you implement a custom lint rule for Android project.