Android Lint erroneously thinks min SDK version is 1

后端 未结 5 576
走了就别回头了
走了就别回头了 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:25

    Make sure you have android: namespace identifier together with minSdkVersion attribute. Like this:

    android:minSdkVersion="8".

    When creating a project based on some Android sample projects (like BluetoothChat) the namespace gets omitted and confuses Lint. Then even clearing Lint Markers doesn't truly cure the issue as they reappear after running Lint again, which happens automatically pretty often.

    Note: this was verified with samples revision 1 for API16

提交回复
热议问题