我们如何确定支持64位NDK的库? [英] How do we identify libraries build with NDK is 64-bit supported?

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

问题描述

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开发为.

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.

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

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