couldn't find "libNative.so"
Created by: mdddj
启动报错
Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/shop.itbug.flutter_plugin_textocr_example-1/base.apk"],nativeLibraryDirectories=[/data/app/shop.itbug.flutter_plugin_textocr_example-1/lib/arm, /data/app/shop.itbug.flutter_plugin_textocr_example-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libNative.so"
出错位置
public static void loadLibrary() throws RuntimeException {
if (!isSOLoaded.get() && isSOLoaded.compareAndSet(false, true)) {
try {
System.loadLibrary("Native"); //>>>>>>>>>>>>>>>>>>>>>>这里报错
} catch (Throwable e) {
RuntimeException exception = new RuntimeException(
"加载libNative.so失败,请检查它存在于apk文件中。", e);
throw exception;
}
}
}