简体   繁体   English

Android eclipse,更改min SDK版本不会触发Lint错误

[英]Android eclipse, changing min SDK version doesn't trigger Lint errors

I'm trying to see what all I would have to change in my code to support older versions of the API (before 14). 我试图在我的代码中看到我需要更改的内容以支持旧版本的API(14之前)。 I thought Lint would throw errors anywhere in the code I was calling a later API unchecked but I can't get this to happen even after clearing Lint markers and cleaning and refreshing the project many times. 我认为Lint会在代码中的任何地方抛出错误我调用后来的API未经检查但是即使清除了Lint标记并清理和刷新项目很多次之后我也无法做到这一点。

Any ideas? 有任何想法吗?

edit: I've discovered if I go to each file individually and make changes to it, and then save it, then Lint is checking for errors. 编辑:我发现如果我单独去每个文件并对其进行更改,然后保存它,那么Lint正在检查错误。 This would be very tedious to do for each file however. 然而,对于每个文件来说这将是非常繁琐的。

You can right click on your project and under Android Tools You will find Run Lint: Check for Common Errors . 您可以右键单击您的项目,在Android Tools您将找到Run Lint: Check for Common Errors That should do it 应该这样做

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM