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).
