Status Update
Comments
ku...@gmail.com <ku...@gmail.com> #2
FWIW, the View Binding classes are generated correctly (and separate ones for the main
and wearable
modules are correct).
The only issue here is with them resolving correctly in Android Studio.
ku...@gmail.com <ku...@gmail.com> #3
Beautiful bug report, thank you. I'll try to take a look in the nearish future.
to...@gmail.com <to...@gmail.com> #4
Hey Ian, it looks like there is no v3.4.0-alpha04
tag. The most recent I see is v3.4.0-alpha03
.
to...@gmail.com <to...@gmail.com> #5
Yes, sorry. v3.4.0-alpha03
is the correct tag to look at.
cp...@twitter.com <cp...@twitter.com> #6
Ian, I know you're out until Monday. Maybe we can talk next week? This case seems really ambiguous, that you have two modules with the same package and same layout files. Can you walk me through how the framework resolves this?
tn...@google.com <tn...@google.com>
tn...@google.com <tn...@google.com> #7
In this particular case, these modules are entirely independent application modules, so the Android framework isn't involved - as mentioned, the builds themselves work fine as they are two independent builds.
It is just the resolution issue in Studio that is a regression from 3.6.2, which I didn't have this problem on.
tn...@google.com <tn...@google.com> #8
I see the problem, and a fix + test is in progress.
cp...@twitter.com <cp...@twitter.com> #9
Fix should land in 4.2 Canary 5.
Thanks again Ian for the great repro project and detailed info.
Description
Hello,
My team is hitting a flaky issue when running lint. It turns out lint will use the highest available installed Android SDK version for looking up the
annotations.zip
resource.So if someone has android R preview installed, and someone else doesn't, their lint results are different for the same project. In most places lint is smart enough to use the compileSdkVersion that is set on the mainProject. That is except for
annotations.zip
andapi-versions.xml
.Pulled from LintClient.kt:
But this really should use the target version of the mainProject rather than the highest installed version for consistent and reproducible results.