I'm working with Android Lollypop's JobScheduler
. Android Studio is flagging this code:
JobScheduler js = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);
... as an error. It compiles fine. Studio, though, thinks it knows all of the legal services, and marks it.
I'm guessing that this is an "Inspection". I searched inspections for the error message, which begins "Must be one of: Context.POWER_SERVICE" and didn't find anything.
This leads me to the specific question: "how can I turn off this, particular, annoying error". Also, the more general question: "In general, if an inspection is annoying me, how do I find it, so that I can turn it off?"
General way to disable inspections you don't want in IntelliJ based IDEs:
Alternatively you can find list of all inspections in Settings/Inspections.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With