用lint工具检查项目,须要在sdk的tool目录下运行,或者配置好环境变量,并生成html报告:html
lint <project directory> --html <filename>
也能够右键项目,点Android Tools里的Run Lint。shell