Fixed
Status Update
Comments
de...@google.com <de...@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 Dolphin Canary 4 (2021.3.1.4)
- Android Gradle Plugin 7.3.0-alpha04
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
Recently NewApi errors are thrown when callers are calling methods annotated with @TargetApi(n), not just @RequiresApi(n).
It looks like this happened because of a typo -- ApiDetector#visitAnnotationUsage is checking against TARGET_API instead of FQCN_TARGET_API.