Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Eclipse don't understand Build.VERSION_CODES.KITKAT?

Tags:

android

I install SDK for Android 4.4, create new app (manifest minSdkVersion=19 and targetSdkVersion=19), but this code don't work

if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {

}

Screenshot

I'm sorry, I find my mistake. I change Project Build Target in Project's Properties to 19.

like image 982
tehnolog Avatar asked Dec 19 '22 21:12

tehnolog


1 Answers

You have to select Android 4.4 for your project if you haven't done so. Right click on top of the project->Properties->Android then check Android 4.4 if that is already there.

like image 124
saiful103a Avatar answered Jan 11 '23 09:01

saiful103a