문제

I have a project which uses the ActionBarSherlock library. When I run Lint on my project, I get a lot of errors and warnings in ActionBarSherlock, which I don't care about.

How can I run Lint only on my project, not the libraries it uses? (Note: I am using the 'Check MyProject' option).

도움이 되었습니까?

해결책

I assume that you have ActionBarSherlock as a separate Android project in your workspace. If so, you can open the context menu on that project, use Properties -> Android -> Android Lint -> Ignore all.

Many preferences in Eclipse can be set for the whole workspace (using Window -> Preferences) and for single projects (as above), where the project preferences then override the workspace preferences for that specific project.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top