It's important to check that there are no problems with the structural quality of your code, as these can cause errors and have a negative impact on your app's performance. Conveniently, the Android SDK comes with Lint, a static code-scanning tool that's perfect for identifying and correcting structural problems with your code.
In Android Studio, the configured Lint expressions run every time you build your app and print the output to Android Studio's Events log, which you can access by selecting the Events log tab.
However, you can also run Lint on a specific module at any time, by right-clicking on that module's file or folder and then selecting Analyze | Inspect code, followed by the area you want to inspect (Whole project, Module, or Custom Scope). Make your selection, and Android Studio automatically opens a new Inspection tab where you can view the Lint output.
To help you zero in on critical problems, Lint provides a description and a severity level for...