转载请著名出处:http://blog.csdn.net/lijunhuayc
搞了这么久android我居然不知道lint工具是干啥的,虽然每次在eclipse下右键项目android tools下面都能看到它,我却木有去瞧瞧她能干嘛~作为一枚android搬砖人,我感到羞愧啊~~~~~
好吧,既然没用过,那几天看到这玩意儿,知道她能干啥了,那么就来现场调戏她一番再说~
你想调戏她么?跟着我来吧,绝对新手级别现场表演~
先来看看谷歌是如何说的:
The Android
lint
tool is a static code analysis tool that checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, accessibility, and internationalization.In Android Studio, the configured
lint
and other IDE inspections run automatically whenever you compile your program. You can also manually run inspections in Android Studio by selecting Analyze > Inspect Code from the application or right-click menu. The Specify Inspections Scope dialog appears so you can specify the desired inspection profile and scope.大体意思就是lint工具可以从各个方面checks你的项目潜在的bug等等。在你编译运行的时候它会自动运行。你也可以手动分析程序。(一下就暴露了我是英语渣渣~~~以后不能装逼了~~)
具体详细的可以看这里: