通过增加android中的minSdk版本可以获得什么优势 [英] What all advantages I can get by increasing minSdk version in android
问题描述
我们在playstore上有一个应用程序,其minSdk版本为15,而api 18及以下版本的活跃用户不到0.7%.因此,我们计划将minSdk版本增加到19.我尝试将minSdk版本增加到19,这可以帮助我们将apk大小减少约650KB,以减少重复使用(当前APK大小为24MB).我认为这样做还可以减少支持库的反向移植,从而减少方法数量.我想念什么吗?除了减小apk大小和简化测试之外,增加minSdk除了将带来什么好处?
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?
推荐答案
我可以想到几个:
- 无损WebP支持(API 19).
- 无需在XML布局(API 17)中使用左/右以及开始/结束.
- 基于铬的WebView(API 19).
-
LayoutTransition.enableTransitionType()
(API 16)-在容器中的任何内容更改布局时进行动画处理. - 更多字体系列-Roboto Light,压缩的Roboto(API 16).
- Java 7
try-with-resources
(API 19).从Android Studio 3.0开始,该功能适用于所有API级别.
- 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
在Android Studio中的创建新项目"向导中,您可以单击最低SDK"下的帮助我选择"以查看以下内容:
In the Create New Project wizard in Android Studio, you can click on 'Help me choose' under Minimum SDK to view this:
这篇关于通过增加android中的minSdk版本可以获得什么优势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!