minSdk vs targetSdk vs compileSdk

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

Vincent Tsen
4 min readMar 10, 2023

--

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…

--

--