Android Lint
Overview
Section titled “Overview”Run Android Lint to analyze your code for potential bugs, performance issues, security vulnerabilities, and accessibility problems. Returns results with file locations.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
projectDir | string | Yes | — | Absolute path to the Android project root |
module | string | No | :app | Module to lint |
fatal | boolean | No | false | If true, report as error when fatal lint issues are found |
Examples
Section titled “Examples”Run lint on my project
Run lint and treat fatal issues as errors
Run lint on the :feature module
Related Tools
Section titled “Related Tools”- Gradle Build — Build after fixing lint issues
- Gradle Task — Run custom lint tasks