如何确定apk是32位还是64位 [英] How to find if apk is 32-bit or 64-bit

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

问题描述

给定一个 APK,我们如何确定它是 32 位应用程序还是 64 位应用程序?我观察到一个应用程序无法在 64 位安卓操作系统上运行.我猜它是一个 32 位应用程序.

Given a APK, how can we find whether its a 32-bit app or a 64-bit app? I am observing an app is unable to run on 64-bit android OS. I guess its a 32-bit app.

推荐答案

APK 是 ZIP.您可以打开它并检查目录 lib 以查看支持哪些架构.如果没有目录lib,则支持所有架构.

APK is ZIP. You can open it and check directory lib to see which architectures are supported. If there is no directory lib, it supports all architectures.

64 位 Android 向后兼容,可以运行 32 位应用程序.另一方面,英特尔 Android(32 位和 64 位)与 ARM Android 的兼容性非常有限(英特尔提供了一个名为 libhoudini 的二进制转换器,但根据我的经验,它仅适用于非常简单的代码),而且ARM Android 与Intel Android 完全不兼容.这仅影响 lib 中包含 NDK 代码的应用程序,纯 Java 应用程序可以在两者上运行.

64-bit Android is backwards compatible and can run 32-bit applications. On the other hand, Intel Android (both 32-bit and 64-bit) has very limited compatibility with ARM Android (a binary translator called libhoudini is shipped on Intel but from my experience, it works for only very simple code), and ARM Android is completely incompatible with Intel Android. This affects only applications with NDK code in lib, pure Java applications can be run on both.

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

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