应用程序更新时的本机崩溃(UnsatisfiedLinkError) [英] Native crash (UnsatisfiedLinkError) when the application is updated
问题描述
我有一个使用某些本机代码的应用程序.该应用程序运行良好并包含所有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?
谢谢!
推荐答案
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屋!