如何强制Android应用程序使用32位或64位库 [英] How to force Android application to use either 32bit or 64 bit libraries
本文介绍了如何强制Android应用程序使用32位或64位库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在具有64位ARM的Android设备上,会有许多库的两个变体32位和64位,并且它们的性能可能有所不同.我想知道是否有一种方法可以强制应用程序使用32位或64位库.
On a Android device with 64bit ARM, would have two variants of many libraries, 32bit and 64 bit, and their performance could be different. I want to know if there is a way to force the application to use either 32bit or 64bit libraries.
推荐答案
在安装apk时可以指定ABI.
ABI can be specified when the apk is installed.
adb install --abi <path to apk>
如果是ARM设备,
要以32位模式运行,请使用
To run in 32 bit mode install using,
adb install --abi armeabi-v7a <path to apk>
要以64位模式运行,请使用进行安装,
To run in 64 bit mode install using,
adb install --abi arm64-v8a <path to apk>
这篇关于如何强制Android应用程序使用32位或64位库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文