Android NDK java.lang.UnsatisfiedLinkError: findLibrary returned null

后端 未结 16 630
我在风中等你
我在风中等你 2020-11-30 01:56

Having the above error in your Android JNI app? Read on...

Up front, I\'ll say that I\'ve already solved this, in my own way, but I feel something in the Android bu

16条回答
  •  春和景丽
    2020-11-30 02:20

    If you have a native project with "libXYZ.so", make sure that /system/lib/libXYZ.so does not exist on your device. There is a painful workaround: use

    System.load("/data/data/your.package.name/lib/libXY.so") 
    

    instead of System.loadLibrary().

提交回复
热议问题