Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Lint report for my project only, excluding library projects?

Tags:

How do I run Android Lint so it only reports on my project module, and ignores any library projects I'm using? Even when I aim Lint at my project's module, it spews out lists of issues in the library projects which I'm not interested in - I want to focus effort on fixing issues in my own code.

I can't see a parameter to specify whether it follows references to library projects or not, but maybe you can see how to do it.

like image 901
Ollie C Avatar asked Mar 22 '12 12:03

Ollie C


2 Answers

The Android SDK Tools 21.1 introduced a new, convenient feature to solve this problem / bug.

Have a look at the Android Lint overflow menu and you will find the option Skip Library Project Dependencies which will do exactly what you are looking for.

enter image description here

like image 133
jenzz Avatar answered Sep 21 '22 18:09

jenzz


If you are using Eclipse, go to the library project's properties (right click on project -> Properties) and under "Android Lint Preferences" click "Ignore All" and than OK.

like image 24
muscardinus Avatar answered Sep 18 '22 18:09

muscardinus