强制应用程序为64位设备运行32位体系结构? [英] Force app to run 32 bit architecture for 64 bit devices?

查看:119
本文介绍了强制应用程序为64位设备运行32位体系结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,该应用程序具有32位体系结构中的.so文件.我没有2个.so文件的本地代码.我的应用程序出现了一些问题,因此我已编辑并尝试在Play商店中进行更新.由于获得所有可能的解决方案,我收到一些由于不支持的64位体系结构而无法上传的错误消息.我犯了一个重大错误,就像我从32位体系结构中复制了一些文件并将其放入libs中的64位一样.我成功上传到Play商店.但是当我运行设备时,它已经达到了设备的64位体系结构,并且出现了诸如它没有64位代码"之类的错误.

I have an android app that has .so files in 32-bit architecture. I don't have native code for 2 .so files. I got some issues over my app so I have edited and tried to update in play store. I get some error messages that I can't upload due to unsupported 64-bit architecture.so from getting all possible solutions. I did one major mistake like I have copied some files from 32-bit architecture and placed into 64 bit in libs. successfully I uploaded into play store. but it's reaching to 64-bit architecture for devices when I run and I get an error like "it doesn't have 64-bit code".

  1. 由于缺少文件,我无法从本机代码生成.so文件.

  1. I cant generate .so file from native code because of missing files.

我尝试保留旧的apk,但这不可能是我在商店中错误地更新了新版本.

I try to retain my old apk but that's not possible of my mistaken new update in store.

是否可以通过接受Google的最新策略规则来强制应用程序针对64位设备运行32位体系结构?

is it possible to force an application to run 32-bit architecture for 64-bit devices with acceptance of the latest policy rules from google?

推荐答案

  1. 无法在64位环境中加载和运行32位库.在arm64-v8a文件夹中具有库之后,您会将应用标记为64位.

  1. There is no way to load and run 32-bit libs in 64-bit environment. Having libraries in arm64-v8a folder, you mark your app as 64-bit.

很快,Android可能会完全放弃对32位库的支持,因此,如果您希望应用程序持续使用几个月以上,则别无选择,只能找到为arm64构建的替代库.或者,也许您可​​以在Java中实现相同的逻辑.

Very soon Android may drop support for 32-bit libraries altogether, so if you want your app to last for more than few months, you have no choice but find alternative libraries that are built for arm64. Or maybe you can implement same logic in Java.

这篇关于强制应用程序为64位设备运行32位体系结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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