不更新目标NDK平台有什么好处? [英] Is there any advantage to not updating target NDK platform?

查看:107
本文介绍了不更新目标NDK平台有什么好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在维护(相对)较旧的Android应用程序,该程序使用NDK构建的库来实现某些功能。它最初是为NDK平台级别9构建的。

I'm maintaining a (relatively) old Android application that uses NDK built library for some functions. It was originally built for NDK platform level 9.

我一直在尝试使构建基础结构现代化,因此,我正在使用更新的SDK和NDK版本,放弃了对NDK平台9(现在的最低版本为16)的支持。

I've been trying to modernize the build infrastructure and as part of that I'm using updated SDK and NDK releases, which dropped support for NDK platform 9 (the minimal version is now 16).

更新我们构建的目标NDK是否有任何优势?反对和/或不更新到最新的NDK平台级别(当前为28),还是在发布新的NDK时更新NDK目标平台级别始终是一个好主意?

Is there any advantage to not updating the target NDK we build against, and/or not updating to the latest NDK platform level (currently 28), or is it always a good idea to update the NDK target platform level when a new NDK is released?

推荐答案

增加NDK API级别的唯一缺点是,这等同于 minSdkVersion 。如果增加 minSdkVersion ,则表示您不再支持较旧的设备。

The only disadvantage to increasing your NDK API level is that this is equivalent to your minSdkVersion. If you increase your minSdkVersion, you're dropping support for older devices.

NDK本身仅放弃了对旧设备的支持。仅当用户数量很少时,API级别。 API级别16及以上版本占所有用户的99%以上。如果由于某种原因,您的应用程序的使用数量在Gingerbread或ICS上显示了大量用户,则您需要使用较旧的NDK来继续支持这些设备。

The NDK itself only drops support for API levels only when they have a trivial number of users. API levels 16 and up account for over 99% of all users. If for some reason your application's usage numbers show a significant number of users on Gingerbread or ICS, you'll need to stick to an older NDK to keep supporting those devices.

升级 minSdkVersion 优点是,您可以访问更多的API,并且要进行测试的配置更少(假设较旧的设备可能具有还有更多问题,这可能会大大减少所需的工程工作量。)

The advantage to upgrading your minSdkVersion is that you have access to more APIs and have fewer configurations to test against (given that the older devices will likely have more problems, that could be a significant reduction in required engineering effort).

正确的API级别因应用程序而异(尽管有趣的是有提供合理建议的Twitter帐户)。检查您的使用次数,查看您的用户所在的位置,并与支持较旧版本带来的困难进行权衡。如果您的应用程序像是高保真游戏,Jelly Bean设备很可能无法以任何合理的性能运行您的应用程序,因此没有必要支持这些设备。

The right API level will vary by app (although amusingly there's a twitter account that gives a reasonable suggestion). Check your usage numbers and see where your users are and balance that against the difficulty imposed by supporting older releases. If your application is something like a high fidelity game, odds are Jelly Bean devices won't be able to run your app with any reasonable performance anyway, so there's no sense in supporting those devices.

这篇关于不更新目标NDK平台有什么好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆