Status Update
Comments
sa...@google.com <sa...@google.com>
js...@google.com <js...@google.com>
js...@google.com <js...@google.com>
da...@gmail.com <da...@gmail.com> #3
da...@gmail.com <da...@gmail.com> #4
I just updated to Android Gradle Plugin: 8.7.2 and the bug is fixed.
an...@google.com <an...@google.com> #5
I spoke too soon. The bug appears gone when I use a different computer, but that is only because the lint check is disabled on it. The computer with the false positive is a new cloning of my github project which apparently has the lint check enabled. The AGP 8.8.0-alpha09 plugin will not work on ladybug, and I'm too busy to switch to a canary build of android studio just to fix a false positive lint check, sorry.
an...@google.com <an...@google.com> #6
I just tried running lint on two more of my computers, one which also has a fresh clone of the github project, and one which has an "ancient" (but up to date) clone of the project -- the two computers have very different Settings -> Editor -> Inspections choices. The old clones do not have this lint check anywhere in their choices, whereas new clones do. Very odd indeed. (I have .idea/ in my .gitignore BTW).
js...@google.com <js...@google.com> #7
I understand that it's not trivial to change AGP version; sorry for suggesting that first.
Actually, there is a better way to test: android.experimental.lint.version=8.8.0-alpha09
which will just change the Lint version.
Description
The following code fails with
WrongConstant
when running./gradlew lint
under AGP 8.6.1. It passes with AGP 8.6.0.Likely regression from https://issuetracker.google.com/issues/364261817
Minimal Reproducible Example
STEPS TO REPRODUCE:
MyApplication2.zip
./gradlew lint
- failslibs.versions.toml
: change AGP to 8.6.0./gradlew lint
- passesLikely Cause