如何重新启用文件级别禁用Android的皮棉警告 [英] How to re-enable a disabled Android Lint warning on file level

查看:137
本文介绍了如何重新启用文件级别禁用Android的皮棉警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我禁用了Android皮棉警告硬codedText为特定的XML文件(它是与数字修复文本的数字键盘)。

I disabled the Android Lint warning 'HardcodedText' for a specific XML file (it's for a numeric key pad with fix text for the digits).

我无法找到一个方法对这个文件重新启用它('还原为默认值左右),无论是在的视窗> preferences> Android的>皮棉错误检查的也不的项目>属性> Android的皮棉preferences 的。

I can't find a way to re-enable it on this file ('Restore Defaults' or so), neither in Windows > Preferences > Android > Lint Error Checking nor in Project > Properties > Android Lint Preferences.

如何重新启用文件级别禁用警告任何想法?

Any idea on how to re-enable a disabled warning on file level?

推荐答案

发现了自己:皮棉放文件lint.xml该项目与相关的物品

Found it out myself: Lint puts the file "lint.xml" to the project with the dependant items.

<lint>
  <issue id="UnusedResources">
    <ignore path="res\layout\my_layout.xml" />
  </issue>
<lint>

可惜的是,编辑和保存这个文件是不够的。你必须关闭并重新打开该项目甚至Eclipse中。

Unfortunatelly, editing and saving this file is not enough. You have to close and re-open the project or even Eclipse.

HTH其他有同样问题....

HTH others with the same issue....

这篇关于如何重新启用文件级别禁用Android的皮棉警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆