質問

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