1.当项目从Android5.0升级为Android9.0时出现该问题
1.可能是混合使用了32bit和64bit的库文件,
2.如果系统先使用64bit的库文件时,则后续的库文件都是以64bit来加载执行,故会出现此问题。
// 原先代码ndk内容
ndk {
abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86'
// 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
//修改后代码
ndk {
abiFilters 'armeabi', 'armeabi-v7a', 'x86'
// 还可以添加 'x86_64', 'mips', 'mips64'
参考链接:
https://blog.csdn.net/Wang_WY/article/details/83111206
so文件兼容问题:https://blog.csdn.net/k316378085/article/details/52034530
项目场景:java.lang.UnsatisfiedLinkError:…libgnustl_shared.so"https://blog.csdn.net/Wang_WY/article/details/83111206https://blog.csdn.net/k316378085/article/details/52034530?utm_term=arm64%E5%B0%8F%E7%B1%B3&utm_medium=distribute.pc_aggpage_search_result.
load
Library msc error:
java.
lang.
UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.example.xflinean-1/base.apk”],native
LibraryDirectories=[/vendor/
lib, /system/
lib]]] couldn’t find “
libmsc.so”
出现加载so包有
问题时
在buidl.gradle(module:app)下的android{
defaultConfig {
Android NDK集成so库C++报错:java.lang.UnsatisfiedLinkError: dlopen failed: library “libc++_shared.so“
React Native项目在64位Android手机上运行,会提示
"/data/data/com.xxx.xxx/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit 这个错误。
解决方法就是取消掉所有的64位的.so文件,全部加载32位的就可以了,下面是步骤
1.在项目的根目录的 gradle.properti
java.
lang.
UnsatisfiedLinkError: dlopen failed: "/data/xxxxx.so" has bad ELF magic
原因是引入的.so库未能做好兼容。解决方案是在defaultConfig里面增加:
ndk {
abiFilters "armeabi-v7a"
强制Android的ndk兼容armeabi-v7a体系架构。排除其...
PID: 3918
java.lang.UnsatisfiedLinkError: dlopen failed: library "libandroid_runtime.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.ja...
opencv的故障-No implementation found for long org.opencv.imgcodecs.Imgcodecs.imread_1(java.lang.String)
故障:Failed to allocate a 65109516 byte allocation with 4191168 free bytes and 56MB until OOM
react native 添加module时的报错Invariant Violation: requireNativeComponent: “RCTView“ was not found in the
MTK6765编译环境搭建
Android系统编译之 [Error]unsupported part number H9TKNNN8KDMP