我怎么知道是什么的Andr​​oid NDK版本我运行 [英] How do I know what android ndk version I'm running in

查看:172
本文介绍了我怎么知道是什么的Andr​​oid NDK版本我运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在GUI中,你可以去设置 - >关于电话 - >固件版本,并得到2.1(或其他)。
我该怎么做它的命令行(或需要做它在运行时本机应用程序)?

In the gui you can go to Settings->About Phone->Firmware Version and get 2.1 (or whatever). How do I do it from command line (or for a native application that needs to do it in run time ) ?

推荐答案

NDK的并不在手机上运行,​​它只是一组让你建立,将在Android设备上运行的本地库的工具。因此,没有版本检查。

The NDK doesn't run on the phone, it's just a set of tools that let you build native libraries that will run on Android devices. As such, there is no version checking.

唯一的硬性要求是,你使用Android 1.5或以上:

The only hard requirement is that you use Android 1.5 or above:

被Android NDK创建的本地库只能在运行Android 1.5平台版本或更高版本的设备上使用。

The native libraries created by the Android NDK can only be used on devices running the Android 1.5 platform version or later.

不过,如果你想使用的OpenGL ES API的特定部分,你需要确保你的应用程序是在某个版本的Andr​​oid OS&MDASH运行;但这是正常通过AndroidManifest.xml文件完成的。

However, if you want to use particular parts of the OpenGL ES APIs, you need to make sure your app is running on a certain version of the Android OS — but this is done as normal via the AndroidManifest.xml file.

请参阅 http://developer.android.com/sdk/ndk/index html的#要求了解更多详情。

这篇关于我怎么知道是什么的Andr​​oid NDK版本我运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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