问题
I'm having trouble, there is no warning when I use methods above API Level 8
setCalendarViewShown(false);
Is just an example
Even if I build my app there's no error, I'll only encounter the error when the app reaches the unsupported method.

回答1:
I just solve my problem
I just check the File > Settings > Inspections > Android Lint > "Calling new methods on older versions" because it's unchecked before

来源:https://stackoverflow.com/questions/24566221/android-studio-api-level-warning-not-showing