设置机器人工作室警告级别 [英] Set android studio warning levels

查看:188
本文介绍了设置机器人工作室警告级别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图与Android工作室工作,到目前为止好。但是,它有黄色的指标,警告,灯泡,(等),所有的地方!

I'm trying to work with android studio, and so far so good. However, it has yellow indexes, warnings, lightbulbs, (etc) all over the place!

这是一个问题。不,我的code未竟充满了真正的警告,它的主要风格挑剔的物品,如
简化
FLAG_AUTOSAVE ==假

!FLAG_AUTOSAVE

Which is a problem. No, my code isn't actually filled with real warnings, it's mostly style nitpicking items such as "Simplify" FLAG_AUTOSAVE == false to !FLAG_AUTOSAVE

其中,不,我不想这样做,那不是我的风格,我喜欢我的code是一目了然更加清晰。

Which, no I don't want to do, that isn't my style, I like my code to be more clear at a glance.

或实际不正确的意见样改变一个正确的方法覆盖的签名。 (当然它仍然是1.x版本...)

Or actually incorrect advice like change the signature of an correctly overridden method. (well it is still version 1.x...)

不管我的风格是完美与否,我需要这些走开这样我就可以看到真正的警告。

Regardless if my style is perfect or not, I need these to go away So I can see the real warnings.

推荐答案

您所看到的都涉及到皮棉静态分析工具,这些警告。

These warnings you are seeing are related to the 'Lint' Static Analysis tool.

不知道Android的工作室,但你通常可以右击,以消除被显示一个特定的警告,或者你可以真正进入皮棉preferences和禁用某些(或全部)警告,从中央控制台。

Not sure about Android Studio, but you can usually right-click to eliminate a particular warning from being shown, or you can actually go into the Lint preferences and disable certain (or all) warnings from a central console.

我发现这些警告通常非常有帮助,鼓励你不要这么快就解雇他们。

I find those warnings generally very helpful, and encourage you to not dismiss them so quickly.

这篇关于设置机器人工作室警告级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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