Android berjalan pada berbagai macam perangkat dan versi OS ("fragmentasi"), jadi aplikasi harus menangani kompatibilitas versi — mendukung versi lebih lama sambil menggunakan fitur baru dengan aman. Memahami tingkat SDK, pustaka kompatibilitas, dan degradasi yang anggun adalah penting.
Tingkat SDK: min, target, compile
minSdk → the OLDEST Android version the app supports (older devices can't install it)
→ lower minSdk = more devices reached, but more compatibility work
targetSdk → the version the app is TESTED/optimized against (and opts into its behaviors)
→ should be kept current (Play requires a recent targetSdk)
compileSdk → the SDK version used to COMPILE (access to newer APIs)
→ Balance: support enough old devices (minSdk) while targeting current behavior (targetSdk).
