Reputation: 41
I want to ask about Android Studio. What is the recommended Minimum SDK for this 2021, I'm currently using api target SDK 31? And how to determine the best Minimum SDK for current latest api? whether browsing on the internet or asking in forums?
Upvotes: 4
Views: 8949
Reputation: 392
I advice to decide what SDK to use in your project based on not only how old device you want to support but also take into consideration how many devices will your app run on. (Unless it's specific none market app.)
Everything you need is in Android studio, right at the page where you create new project and choose Minimum SDK.
Help me choose
Help me choose
will open this graphical representation of all API Distribution and percentage of device your app will run on.IMHO reasonable solution is choose newest possible SDK that allows your app to run on 80+% of devices
edit: it was also mentioned in comment by Markus Kauppinen.
Upvotes: 1
Reputation: 56
The minimum SDK is the minimum version of Android your app will support. If you would like to support older phones, you should set your minimum SDK level lower, and if you want to reduce code complexity and only support newer phones, you can go with a higher SDK level.
The numbers correspond with android versions.
I would personally recommend supporting Android 5.1+ (minimum SDK of 22) if you do not know where to start, as compatibility with android 4 gets tricky.
Upvotes: 4