Using Android lint to check for errors in your code
Android’s lint tool allows you to find common issues in your code by running code static analysis against your project. This tool performs some Android specific checks that some other code static analysis tools can’t do for you. The lint tools comes with the Android SDK under tools/lint. In its most simple form you can use this command:
1
lint <Android project folder>
I like this form because I can easily plug it to my CI system:
1
lint <Android project folder> --exitcode