Android Lint claims NewApi for try-with-resources
See original GitHub issueWith retrolambda and android lint, I got “Try-with-resources requires API level 19 (current min is 14)” on below line.
try (Realm realm = getRealm()) {
But to suppress this requires ignoring all NewApi usage incl. other than try-with-resources. Is there any workaround for this…?
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Android Lint API Guide - Google Samples
The Detector API: “Implement a new lint check”. This is the API which lets checkers analyze code and report problems that they find....
Read more >Improve your code with lint checks - Android Developers
The lint tool checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, ...
Read more >Android Lint flagging NewAPI Error where it should not
I think that you get the error because you are mixing in a single method two different methods for different api version. You...
Read more >NewApi lint check does not factor in usage of core library ...
The NewApi lint check incorrectly reports that certain APIs are not available on devices using the minimum SDK level, despite core library desugaring...
Read more >ApiDetector.java - Google Git
import static com.android.tools.lint.detector.api.ClassContext. ... Constructs a new API check */ ... new API level; it's highly likely that the constructor.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
oops… Android Studio also claims it. But there seems to be no regexp option.