Android Studio API Level warning not showing

允我心安 提交于 2021-01-27 04:45:15

问题


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.

enter image description here


回答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

enter image description here



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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!