我们如何识别使用 NDK 构建的库是否支持 64 位? [英] How do we identify libraries build with NDK is 64-bit supported?

查看:17
本文介绍了我们如何识别使用 NDK 构建的库是否支持 64 位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google 表示,使用原生代码/库的应用必须在 2019 年 8 月 1 日之前提供 32 位版本之外的 64 位版本.从代码中很容易识别出使用 NDK 开发的应用程序.但是我们如何识别使用 NDK 开发的库呢?

Google saying that apps using native code / libraries must provide a 64-bit version in addition to the 32-bit version by August 1, 2019. It's easy to identify the app developed in NDK from it's code. But how do we identify a library which is developed in NDK?

推荐答案

根据你的应用使用原生代码吗?,

对于 ARM 架构,32 位库位于 armeabi-v7a 中.64 位等效版本是 arm64-v8a.

For the ARM architecture, the 32-bit libraries are located in armeabi-v7a. The 64-bit equivalent is arm64-v8a.

对于 x86 架构,请查找用于 32 位的 x86 和用于 64 位的 x86_64.

For the x86 architecture, look for x86 for 32-bit and x86_64 for 64-bit.

所以,

我们如何识别使用 NDK 开发的库?

how do we identify a library which is developed in NDK?

类似于.apk,可以查看库的目录结构,即.aar,有lib/arm64-v8a/xxx这样的目录.solib/x86_64/xxx.so,如果是,则表示此.aar 开发为64-bit.

Similarly as .apk, you can inspect the directory structure of the library, i.e. the .aar, has directories like lib/arm64-v8a/xxx.so or lib/x86_64/xxx.so, if yes, it means this .aar is developed as 64-bit.

这篇关于我们如何识别使用 NDK 构建的库是否支持 64 位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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