Android Lint erroneously thinks min SDK version is 1

后端 未结 5 482
走了就别回头了
走了就别回头了 2021-02-01 16:18

Eclipse refuses to build my Android project. In the package explorer, the project root node has the little red error symbol, but nothing else inside of it has this symbol. The P

5条回答
  •  难免孤独
    2021-02-01 16:50

    "Clear Lint Markers" in the Accepted Answer removed the error temporarily, but it kept coming back every time I saved a file in the affected project.

    To make it stop reporting that error, I had to disable the lint check altogether:

    Right click project -> Properties -> Android Lint Preferences
    
    Search for "minSdk" in the search box
    
    Click on "UsesMinSdkAttributes"
    
    Click the "Ignore All" button at the bottom.
    

    Clean and rebuild the project, and Eclipse/ADT will no longer run the lint check for minSdk on your project.

提交回复
热议问题