Open
Description
We are currently migrating to AGP 7 and noticed that our custom lint rules are not included in the lint checks.
We previously included them using lintChecks project(":libraries:lint-rules")
and we only need them for local code check, so no publishing needed. Is there anything specific that needs to be changed to make it work with AGP 7?
Activity
tnorbye commentedon Sep 10, 2021
Do you mean that they're not packaged (e.g. the AAR file does not contain a lint.jar) or that somehow the checks aren't working/being applied?
androideveloper commentedon Sep 13, 2021
this.
An example of a lint check we have is below. And to test the setup, we previously added a usage of
SimpleDateFormat
and could see it in the lint report. After updating to AGP 7 we don't see it in the lint report.glorinli commentedon Jan 12, 2022
Same issue with AGP 7.0.3 and lint 30.0.3.
glorinli commentedon Jan 12, 2022
I figured out that in my case it's caused by the maven publish plugin since I used third party maven plugin and seems it doesn't work well with AGP 7.0.3.
It's ok when I switch to builtin maven-publish plugin.
apkelly commentedon Jan 13, 2022
I have the same problem, but I'm not using the maven-publish plugin at all, and I'm not publishing my lint checks via a library module, I'm just using them locally.
I am using kotlin for my build scripts, not groovy.....would that make a difference?
Android Studio Bumblebee | 2021.1.1 Beta 4
AGP=7.1.0-beta04
Lint=30.1.0-beta04
I've literally just included the code from this repo and have a Log.println() in my MainActivity which doesn't get highlighted when I run ./gradlew lintDebug or inside Android Studio.