问题描述
当我运行在命令行中执行以下操作:
When I run the following on a command line:
./gradlew -lint
我得到比如果我选择Android的Studio中下面的菜单选项不同的结果。
I get different results than if I choose the following menu option within Android Studio.
Analyze->Inspect Code...
谁能解释一下吗?这正常吗?如果一个谨慎的开发商为了找到与他/她的项目中的所有潜在的问题,同时运行?
Can anyone explain this? Is this normal? Should a prudent developer run both in order to find all potential problems with his/her project?
推荐答案
在Android的工作室,你可以自定义哪些检查是通过preferences>检查运行;你可能有一些林特检查禁用的,而不是所有运行在默认情况下。 Android的工作室也可以运行非皮棉检验大量。
In Android Studio you can customize what inspections are run via Preferences > Inspections; you may have some Lint inspections disabled, and not all run by default. Android Studio can also run a great number of non-Lint inspections.
这篇关于通过Android的Studio菜单和gradlew命令行运行皮棉的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!