问题
I am running the Lint tool from Eclipse(Android SDK).
My settings are default and NewApi is set up as Error in my Android Lint Settings
However, when I run Lint (by Package Explorer > Android Tools > Run Lint: Check for Common Errors
.), It seems to ignore the fact that I have used API methods higher than the android:minSdkVersion
in my manifest XML.
What am I doing wrong?
UPDATE:
I tried to do the check by Lint command line tool by:
lint "C:\Android\workspace\MyProject"
-- still didnot show the newAPI errors
However when I did the link check specifically for newAPI:
lint --check NewApi "C:\Android\workspace\MyProject"
--- showed the expected errors
Why are NewApi errors not pointed by default?
来源:https://stackoverflow.com/questions/21614007/android-sdk-lint-tool-ignoring-newapi-warnings