Android は膨大な範囲のデバイスと OS バージョン上で動作する("フラグメンテーション")ため、アプリはバージョン互換性を処理する必要があります — 古いバージョンをサポートしながら、新しい機能を安全に使用します。SDK レベル、互換性ライブラリ、グレースフルデグラデーションを理解することが重要です。
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).
