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?
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
}
I also experienced the same issue when using targetSdkVersion
containing deprecated code. It seems that the if
statement is ignored by Lint
check. So, I have to suppress lint on that block to remove the warning.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With