We have an app on playstore with minSdk version as 15 and we have less than 0.7% active users on api 18 and below. So we were planning to increase our minSdk version to 19. I tried incrementing the minSdk version to 19 and it helped us in reducing apk size by 650KBs approximately in resurces (Current APK size 24MB). I thought by doing this we should be able to decrease method count also because of lesser backporting of support libs. Am I missing something? What all benefits I will get by increasing minSdk other than reduced apk size and ease of testing?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I can think of few:
- Lossless WebP support (API 19).
- No need to use left/ right along with start/end in xml layouts (API 17).
- Chromium based WebView (API 19).
LayoutTransition.enableTransitionType()
(API 16) - to animate when anything in the container changes the layout.- More font families - Roboto Light, Roboto Condensed (API 16).
- Java 7
try-with-resources
(API 19). From Android Studio 3.0, this is available for all API levels.
You can find more here:
https://github.com/kaushikgopal/why_bump_android_minsdk
In the Create New Project wizard in Android Studio, you can click on 'Help me choose' under Minimum SDK to view this: