What are the Android platform platforms for the SDK for?

What are the Android SDK platform packages for?

Do I need to download the appropriate platform for each level of API that I am aiming for?

+4
source share
2 answers

minSdkVersionis the minimum version of the API your application is compatible with. You do not need to download anything according to this value. If you set the value to, say, 21 (Marshmallow), your application will not work on a device with Android version 19 (KitKat).

targetSdkVersion sdk, , Outlook. , , , 21, Android android 23. Android, , - , . ​​ Google Play, API , .

compileSdkVersion - Android SDK, . SDK, SDK. , Context getColor(int), 23 SDK, . 21, , . , minSdkVersion , , 23, SDK 21, .

, . , Android gradle , .

, SDK API, , .. compileSdkVersion.

" ", , apk, apk . Android SDK (, Context), apk, , . , SDK, "" SDK , .

+2

android:minSdkVersion, , ( minSdkVersion ). SDK, .

, android:targetSdkVersion, , . , , . android:targetSdkVersion, minSdkVersion.

:, SDK ( compileSdkVersion), . , , targeted minSdkVersion .

-1

Source: https://habr.com/ru/post/1695031/


All Articles