Android Lint error: class requires API level 3, current minus 1

When launching an Android application, I often get a list of errors that say

Class requires API level 3 (current min is 1): android.hardware.SensorEventListener

I was looking for the correct answer to this question, for example, Android tools> Clear Link Markers, but this does not solve the problem. From time to time, the list of errors keeps coming back. Is this something in my project settings or my legacy methods? I installed the latest SDK for Android 4.4.

+4
source share
3 answers

manifestInstall sdk in your file as it is, based on your requirement.

 <uses-sdk
    android:maxSdkVersion="17"
    android:minSdkVersion="8" />
+7
source

Change the minsdk application from Preference>Android>select the api level Android1.6

0
source

, .

0
source

All Articles