Why doesn't deprecation warning disappear when verifying Build.VERSION.SDK_INT before using deprecated item?

Viewed 362

THEME_HOLO_LIGHT was deprecated in API 23.

So why do I still get a deprecation warning when verifying I'm using it on API < 23?

enter image description here

Relevant piece of my build.gradle:

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"
    useLibrary "org.apache.http.legacy"
    defaultConfig {
        applicationId "com.my.app"
        minSdkVersion 14
        targetSdkVersion 23
}
1 Answers
Related