compileSdkVersion vs. targetSdkVersion - what's the difference?

Описание к видео compileSdkVersion vs. targetSdkVersion - what's the difference?

In this video, we'll take a closer look at two values that are set in the build.gradle file: compileSdkVersion and targetSdkVersion.

We usually update both these API level values once the new Android SDK version is released. Both of them are crucial to handle forward compatibility in Android - so they both are connected with what to do when the new Android SDK version appears.
But how do they exactly work?
And why are there two of them since we usually set them to the same value anyway?

00:00 Intro
00:46 compileSdkVersion
02:42 targetSdkVersion
04:44 relationship between compile and target SDK version

Комментарии

Информация по комментариям в разработке