minSdk vs targetSdk vs compileSdk

What is the difference between minSdk, targetSdk and compileSdk in your build Gradle script?

Vincent Tsen

--

Let’s have a look at what minSdk, targetSdk and compileSdk really means in build.gradle script.

android {
compileSdk 32
defaultConfig {
/*...*/
minSdk 21
targetSdk 32…

--

--