用lint工具檢查項目,須要在sdk的tool目錄下運行,或者配置好環境變量,並生成html報告:html
lint <project directory> --html <filename>
也能夠右鍵項目,點Android Tools裏的Run Lint。shell