Fixed
Status Update
Comments
pa...@google.com <pa...@google.com>
tn...@google.com <tn...@google.com>
an...@google.com <an...@google.com> #3
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Meerkat | 2024.3.1 Canary 6
- Android Gradle Plugin 8.9.0-alpha06
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
Use case: I have an instrumentation test I want to only run on devices with a particular SDK extension.
I first looked to see if there's a version of b/257429573
@SdkSuppress
which supports extensions. It seems there isn't:So I adopted the suggested approach from that bug: Use
@RequiresExtension
and anassumeTrue
call in an@Before
method.But lint complains at my usage of
@RequiresExtension
(see screenshot) and says:Which I can't do, because
@SdkSuppress
doesn't support filtering by SDK extension.IMO ideally
@SdkSuppress
would support SDK extensions (or an equivalent annotation would be created). But until then, can we stop lint from asking for the impossible?