Status Update
Comments
kd...@google.com <kd...@google.com>
pa...@google.com <pa...@google.com>
an...@nrk.no <an...@nrk.no> #2
Maybe a dup of
pa...@google.com <pa...@google.com> #3
Android Gradle Plugin: 8.7.1
Could you try the latest canary, AGP 8.8.0-alpha09
?
sp...@google.com <sp...@google.com>
sp...@google.com <sp...@google.com> #4
I just updated to Android Gradle Plugin: 8.7.2 and the bug is fixed.
an...@nrk.no <an...@nrk.no> #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).
Description
Describe the bug or issue that you're seeing.
We have a project with multiple modules using here . This seems to build just fine when for instance building a regular APK, but linting fails.
apply plugin: 'com.android.library'
. One of these modules (calledanalytics
) needs to use an external AAR file. We have tried to set it up as describedFor instance when we run
lintDebug
we get this error:We don't need the modules to be built as AAR-files, in the end they'll just be part of the final app. But then we assume there's either something missing in the documentation, there is an error with the linting or that we are missing some setup.
A similar issue has been discussed on StackOverflow , but that's for modules that are going to be used as actual libraries in the end - and they are refering to an old method that I guess aren't recommended anymore?
Attach log files from Android Studio
As this most likely isn't an issue with Android Studio (I just weren't allowed to create the issue anywhere else) I don't think this is needed - but let me know if it is!
If you know what they are, write the steps to reproduce:
implementation files(...)
with an AAR-filelintDebug
task or something alike itAdditional information