In Eclipse, any lint errors or warnings are both highlighted in the code file, but also in the package tree with icons highlighting files with warnings/errors.
Try as I might, I can't find a way to replicate this functionality in Android Studio. Does anyone know of a way to do this? Is there an IntelliJ plugin I just can't find that might help?
Run lint using the standalone tool You can then locate the lint tool at android_sdk /cmdline-tools/ version /bin/lint . For example, you can issue the following command to scan the files under the myproject directory and its subdirectories.
Lint checks are automatically performed by the Gradle build system. To see the available checks in Android Studio File Settings Editor Inspections. You can also run the lint checks manually by right-clicking on your project and select Analyze Inspect Code. You can run link also from the command line.
try looking at the error report file located: ProjectDir/app/build/report/lint-results-release-fatal.html
As per android developer docs, we can inspect the lint error below way
1.In the Android view, open your project and select the project, a folder, or a file that you want to analyze.
2.From the menu bar, select Analyze > Inspect Code.
3.In the Specify Inspection Scope dialog, review the settings.
Reference click here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With