5

I am trying to use Android Lint to keep my code running smoothly but since I'm using support-v7-appcompat, Lint returns an enormous, overflowing list of warnings. How can I suppress all of them so I can only see issues with my own app? In the Lint Overflow menu, there are options for "Check all Projects", "check android-support-v7-appcompat", and "check [myapp]" - but clicking [myapp] also shows a vast amount of errors regarding abc_ (support library) and trying to suppress them by selecting them and pressing "ignore in this project" doesn't work! As soon as I click "check [myapp]" again, the same lint errors show up.

I can only assume this isn't intended behavior of lint! What can I do to improve this?

Regards,

1 Answer 1

5

You can find the option in the android lint menu:

Once "Skip Library Project Dependencies" is checked, that should skip appcompat lint warnings when you are checking your project

lint overflow menu

3
  • What if some of the projects are library project I've made, and I wish to be warned about them, but don't wish to be warned about third party libraries? Commented Apr 16, 2014 at 21:03
  • I don't believe there is a way to do that, could you (when you are working on the library) just run lint on the library itself rather than on the project that is depending on it?
    – tabjsina
    Commented Apr 18, 2014 at 0:00
  • yes , you can, and you can even see it on the screenshot you've posted - just use the project you wish to check. However, it doesn't work well as it doesn't consider what's using the library project. this means that if I've set "unusedResources" to warn me, and only the projects that use the library use the resources defined there, I will get a lot of warnings, without knowing which are really unused. Commented Apr 18, 2014 at 6:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.