Android的皮棉:如何晚饭preSS与支持库相关联的所有警告? [英] Android Lint: How to suppress all warnings associated with support library?

查看:82
本文介绍了Android的皮棉:如何晚饭preSS与支持库相关联的所有警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Android林特让我的code平稳运行,但因为我使用的支持-V7-appcompat,皮棉返回警告的一个巨大的,满溢列表。我怎样才能晚饭preSS所有的人,所以我只能看到自己的应用程序问题?在皮棉溢出菜单中,有对检查所有项目,检查Android的支持-V7-appcompat和检查[的myapp]选项 - 但点击[的myapp]也显示错误关于abc_了大量(支持库),并试图通过选择和pressing到晚饭preSS他们忽略了在这个项目中不工作!当我点击查看[的myapp]再一次,同样的皮棉错误显示出来。

I am trying to use Android Lint to keep my code running smoothly but since I'm using support-v7-appcompat, Lint returns an enormous, overflowing list of warnings. How can I suppress all of them so I can only see issues with my own app? In the Lint Overflow menu, there are options for "Check all Projects", "check android-support-v7-appcompat", and "check [myapp]" - but clicking [myapp] also shows a vast amount of errors regarding abc_ (support library) and trying to suppress them by selecting them and pressing "ignore in this project" doesn't work! As soon as I click "check [myapp]" again, the same lint errors show up.

我只能假设这是不打算皮棉的行为!我能做些什么来改善呢?

I can only assume this isn't intended behavior of lint! What can I do to improve this?

问候,

推荐答案

您可以找到在Android皮棉菜单中的选项:

You can find the option in the android lint menu:

在跳过库项目依赖被选中,那应该跳过appcompat lint警告,当你检查你的项目

Once "Skip Library Project Dependencies" is checked, that should skip appcompat lint warnings when you are checking your project

这篇关于Android的皮棉:如何晚饭preSS与支持库相关联的所有警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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