Android SDK 和 NDK 有什么区别? [英] What is the difference between Android SDK and NDK?

查看:69
本文介绍了Android SDK 和 NDK 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将开始安卓应用开发.

I am about to start android application development.

什么是 NDK? 文档我无法提取以下信息:

From What is NDK? documentation I was not able to extract the following information:

与 SDK 相比,使用 NDK 是否真的引入了新功能?

Does using NDK actually introduce new features comparing to SDK?

我对此感兴趣是因为使用 NDK 会大大增加应用程序的复杂性,所以如果我对性能提升不感兴趣,是否还有其他理由选择 NDK?

I am interested in this because using NDK greatly increases application complexity, so if I am not interested in performance increase, are there other reasons to go for NDK?

我的意思是例如:

-重启手机

  • (我知道 SDK 和 NDK 都不允许这样做,我只是将其用作我的意思的示例)假设 java SDK 不允许这样做,但某些本机库允许这样做 - 那么我的问题的答案是肯定的,NDK 确实添加了一些功能

预先感谢您提供任何有用的答案.

Thanks in advance for any helpful answers.

推荐答案

据我所知,使用 NDK 的唯一原因是从应用程序中榨取额外的性能并更接近裸机.如果您不需要执行上述任何一项操作,您可能应该远离 NDK.

The only reasons to use the NDK as far as I know is to squeeze extra performance out of your application and get closer to the bare metal. If you don't need to do either of these things, you should probably stay away from the NDK.

另请注意,Dalvik VM 已经具有非常棒的性能并且相对简单.

Also note that the Dalvik VM already has some pretty awesome performance and comparatively simpler.

这篇关于Android SDK 和 NDK 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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