Status Update
Comments
rk...@google.com <rk...@google.com>
tn...@google.com <tn...@google.com> #2
Android build
Which Android build are you using? (e.g. UQ1A.240205.002)
Device used
Which device did you use to reproduce this issue?
Are you reporting this as a Developer or User?
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report to google drive and share the folder to android-bugreport@google.com, then share the link here.
ey...@gmail.com <ey...@gmail.com> #3
Please provide the requested information to proceed further. Unfortunately the issue will be closed within 7 days if there is no further update.
tn...@google.com <tn...@google.com> #4
We are closing this issue since we didn't receive a response. If you are still facing this problem, please open a new issue and add the relevant information along with reference to this issue.
ma...@gmail.com <ma...@gmail.com> #5
I just bumped into this as well. To reproduce, you can use the reproducer-260755411
branch of the ./gradlew :shared:lintDebug
:
$ ./gradlew :shared:lintDebug
> Configure project :shared
> Task :shared:lintReportDebug
Wrote HTML report to file:///Users/mbonnin/git/Confetti/shared/build/reports/lint-results-debug.html
> Task :shared:lintDebug FAILED
Lint found 1 errors, 0 warnings. First failure:
/Users/mbonnin/git/Confetti/shared/src/androidMain/kotlin/dev/johnoreilly/confetti/utils/AndroidDateTimeFormatter.kt:15: Error: Cast from Instant to TemporalAccessor requires API level 26 (current min is 21) [NewApi]
return formatter.withZone(ZoneId.of(timeZone.id)).format(instant.toJavaInstant())
~~~~~~~~~~~~~~~~~~~~~~~
There was no error on AGP 7.3.1
tn...@google.com <tn...@google.com> #6
This bug is fixed by
There was also a related fix here for the scenario where you run lint on the library itself:
Thanks for the report and especially the clear repro!
tn...@google.com <tn...@google.com> #7
Actually it sounds from the initial report like this wasn't broken in 7.4 (
ma...@gmail.com <ma...@gmail.com> #8
Also I just tried 8.0.0-alpha10 and it seems to be fixed there as well 👍
tn...@google.com <tn...@google.com> #9
Thanks for confirming, glad to hear it!
Description
I just updated to Flamingo Alpha 8 from EE Beta 5 and running lint results in NewApi errors for
java.time.*
(272 occurrences in my app). My minApi is 24 and lint is saying that all of these calls require minApi 26. I have desugaring enabled.