Fixed
Status Update
Comments
pa...@google.com <pa...@google.com>
tn...@google.com <tn...@google.com>
tn...@google.com <tn...@google.com> #2
This can be either an issue with interface method desugaring, most likely one of the dependency has now new static/default/private methods on interfaces which is incorrectly supported by our compiler, or it's an issue with desugared library, or both.
To rule the options out:
- Are you using desugared library in your project (https://developer.android.com/studio/write/java8-support-table )?
- What is the minSdk of your project? If it's strictly below 24, and you change it to 24, and let us know if the issue happens.
If you want us to help you further, for example by helping you build a work-around, or fix the compiler, we need you to either provide us a reproduction project (github or zip) or a compilation dump of your application (See how to generate dumps herehttps://r8.googlesource.com/r8/+/refs/heads/main/doc/compilerdump.md ).
Thanks for the report.
To rule the options out:
- Are you using desugared library in your project (
- What is the minSdk of your project? If it's strictly below 24, and you change it to 24, and let us know if the issue happens.
If you want us to help you further, for example by helping you build a work-around, or fix the compiler, we need you to either provide us a reproduction project (github or zip) or a compilation dump of your application (See how to generate dumps here
Thanks for the report.
an...@google.com <an...@google.com> #3
Yes, I'm using desugaring, version 1.2.2 (to work with LocalDate). I tried to build a signed apk with disabled desugaring and the build was successful.
In my project minSdk is 24.
Unfortunately I can't provide you the source code or dump as this is a confidential project, but I can provide a list of dependencies, build.gradle files and a class that works with LocalDate if that helps, or maybe smth else, but not a whole project(
In my project minSdk is 24.
Unfortunately I can't provide you the source code or dump as this is a confidential project, but I can provide a list of dependencies, build.gradle files and a class that works with LocalDate if that helps, or maybe smth else, but not a whole project(
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?