Android Studio API级别警告未显示 [英] Android Studio API Level warning not showing
本文介绍了Android Studio API级别警告未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了麻烦,当我使用高于API级别8的方法时没有警告
I'm having trouble, there is no warning when I use methods above API Level 8
setCalendarViewShown(false);
仅是一个例子
即使我构建了应用程序也没有错误,但只有在应用程序达到不受支持的方法时,我才会遇到错误.
Even if I build my app there's no error, I'll only encounter the error when the app reaches the unsupported method.
推荐答案
我只是解决了我的问题
我只是检查文件">设置">检查">"Android Lint">在旧版本上调用新方法",因为以前未选中
I just check the File > Settings > Inspections > Android Lint > "Calling new methods on older versions" because it's unchecked before
这篇关于Android Studio API级别警告未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文