Android minSdk and dependecies -
i read app able run on minimum sdk version, 16 in case:
android { compilesdkversion 23 buildtoolsversion "23.0.2" defaultconfig { applicationid "com.github.dht.screenger" minsdkversion 16 targetsdkversion 23 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } ...
so happen level 23 dependencies when running on api 16 device?
dependencies
compile 'com.android.support:appcompat-v7:23.2.0' compile 'com.android.support:recyclerview-v7:23.2.0' ....
it depends on feature , have used support library or not, cause in case have used feature support library that's backward compatible library takes care of else native behavior kicks in,
lets take common scenario, status bar
in api level 16 there no status bar color tinting black status bar shown api 21 on-wards it's there here can see native behavior of particular version kicks-in
now lets see com.android.support:recyclerview-v7:23.2.0
as can see v7 specifies library backward compatible till version api version 7( eclair_mr1) support library you.
the final case using methods available in particular version of sdk
when happens compiler throws error saying cant use since min supported version not have methods.
Comments
Post a Comment