应用程序更新时的本机崩溃(UnsatisfiedLinkError) [英] Native crash (UnsatisfiedLinkError) when the application is updated

查看:73
本文介绍了应用程序更新时的本机崩溃(UnsatisfiedLinkError)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用某些本机代码的应用程序.该应用程序运行良好并包含所有abis,但在某些Android设备(例如具有Android 7.0的Galaxy Note5和具有Android 7.0的SM-G955U(三星Galaxy S8 plus))中,应用程序崩溃并出现以下错误:

I have an app that uses some native code. The applications works fine and contains all the abis but in some android devices like Galaxy Note5 with Android 7.0 and SM-G955U (Samsung Galaxy S8 plus) with Android 7.0 the application crashes with the following error:

Fatal Exception: java.lang.UnsatisfiedLinkError: Native method not found

这些是APK中包含的abis:

These are the abis included in the APK:

arm64-v8a
armeabi
armeabi-v7a
mips
mips64
x86
x86_64

有人知道我该怎么解决吗?

Anybody knows how can I fix that?

谢谢!

推荐答案

如果您的问题仅存在于API> = 23的设备上,则可以设置

If your problem only exists on devices with API >= 23, you can set application/extractNativeLibs to false in your Manifest, and the native libraries will be used without unpacking. This can also reduce disk requirements for your app.

这篇关于应用程序更新时的本机崩溃(UnsatisfiedLinkError)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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