When downloading Android code from the Internet or importing some code, there may be something like ”
Description Resource Path Location Type
Call requires API level 4 (current min is 3): android.widget.ImageButton#setContentDescription ActionBarHelperBase.java /ActionBarCompat/src/com/example/android/actionbarcompat line 192 Android Lint Problem ”的errors。
The reason for the error is that the android:minSdkVersion in uses-sdk is specified wrongly in AndroidManifest.xml, change the minSdkVersion according to the error prompt.
As in this example.
<uses-sdk android:minSdkVersion=”4″ android:targetSdkVersion=”14″ />