I would like to be able to run the lint task when I\'m building projects with the android studio to ensure the lint rules are being followed.
I have tried using task
If you just want to configure your Android Studio project to run the lint check before the default run configuration without affecting how your gradle tasks are configured, you can follow these steps.



:app:check)
check step before the existing Gradle-aware make step
Now, Android Studio will run the lint check and fail the build if any lint errors occur.