Status Update
Comments
km...@google.com <km...@google.com>
di...@google.com <di...@google.com> #2
Maybe a dup of
fa...@gmail.com <fa...@gmail.com> #3
Android Gradle Plugin: 8.7.1
Could you try the latest canary, AGP 8.8.0-alpha09
?
di...@google.com <di...@google.com> #4
I just updated to Android Gradle Plugin: 8.7.2 and the bug is fixed.
fa...@gmail.com <fa...@gmail.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.
fa...@gmail.com <fa...@gmail.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).
di...@google.com <di...@google.com>
di...@google.com <di...@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.
an...@google.com <an...@google.com> #8
I decided it was easier to download Android Studio Ladybug Feature Drop | 2024.2.2 Canary 9 than to figure out how to use a different version of lint (a search of stackoverflow suggests this is impossible for what that is worth). Using AGP 8.8.0-alpha09 and gradle-8.10.2-bin.zip on Canary the same error occurs. It looks like it is caused by the K2 compiler mode, because the Inspections options for this lint check does not appear until you enble K2 mode (nor does the false positive error).
Description
2. Logs attached
3. Reproduce:
3A. Click 'Pick a Resource' button on the right of the attribute's text field
3B. Search bar of the appeared window is not focusing
Screenshots attached
Build: AI-241.15989.150.2411.11948838, 202406102154
AS: Koala | 2024.1.1
AI-241.15989.150.2411.11948838, JRE 17.0.10+0-17.0.10b1087.21-11609105x64 JetBrains s.r.o., OS Mac OS X(x86_64) v12.7.5, screens 1920.0x1080.0
Android Gradle Plugin: 8.5.0
Gradle: 8.7
Gradle JDK: JetBrains Runtime 17.0.10
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
Source: send_feedback_icon```