Status Update
Comments
sp...@google.com <sp...@google.com>
au...@google.com <au...@google.com> #2
One observation here is that ANDROIDX_PROJECTS=INFRAROGUE
triggers enabling ok KMP native targets.
au...@google.com <au...@google.com> #3
It also repros with ./gradlew :collection:collection-benchmark-kmp:lintReportJvm -Pandroidx.enabled.kmp.target.platforms="+linux"
au...@google.com <au...@google.com> #4
As a side note, it is a bit bad that it says In plugin 'com.android.internal.version-check' type
instead of com.android.lint
sp...@google.com <sp...@google.com> #5
I see the issue here - the AndroidLintTask is currently assuming that there will be a jvm target named "jvm" 😞.
The best fix will be to fully remove variantInputs
as an input to the AndroidLintTask (
Can you workaround the issue by either (1) temporarily removing the lint plugin from :collection:collection-benchmark-kmp
or (2) adding a fake jvm target named "jvm"? If that allows you to upgrade AGP to 8.2.0-alpha14 and remove AndroidX's usage of the API (similar to aosp/I8fa3fdf4119c0cc4433c0b72f7ad0e0096a6de72), then I can fix this bug by removing variantInputs
as an input to the AndroidLintTask.
sp...@google.com <sp...@google.com> #6
Edit: See
running grep -rl 'androidXMultiplatform' | xargs grep -L 'jvm()'
yields the following list:
compose/test-utils/build.gradle
compose/animation/animation/build.gradle
compose/animation/animation-graphics/build.gradle
...
collection/collection-benchmark/build.gradle
collection/collection/build.gradle
I expect running lint
or lintReportJvm
on any of these modules will result in a similar failure.
Another workaround (in addition to options 1 and 2 listed above) would be to temporarily not run lint
or lintReportJvm
on those modules (until I'm able to remove variantInputs
as an input to the AndroidLintTask.
sp...@google.com <sp...@google.com> #7
Good news, this is not as bad as #6 suggested because those other modules do not apply the standalone lint plugin, so running lint on them still works.
The only AndroidX module that is affected by this bug is the original :collection:collection-benchmark-kmp
.
Can we temporarily not run lint on that module to unblock AndroidX from upgrading to AGP 8.2.0-alpha14?
au...@google.com <au...@google.com> #8
Disabling lint on :collection:collection-benchmark-kmp
and :benchmark:benchmark-darwin-samples
works around it. Assigning it back for the proper fix.
ag...@google.com <ag...@google.com>
ga...@google.com <ga...@google.com>
sp...@google.com <sp...@google.com> #10
The fix was cherry-picked to AGP 8.2.0-beta01.
Description
DESCRIBE THE ISSUE IN DETAIL:
STEPS TO REPRODUCE:
ANDROIDX_PROJECTS=INFRAROGUE ./gradlew :collection:collection-benchmark-kmp:lintReportJvm
Expected
Success
Actual