我正在使用Android本机库,在处理图像时,我看到一条消息说
当我使用targetSdkVersion 22
时,如果我更新targetSdkVersion to 23
或更高版本就会出现错误
java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/package-name-1/lib/arm/libjniopencv_core.so: has text relocations.
at java.lang.Runtime.loadLibrary0(Runtime.java:977)
at java.lang.System.loadLibrary(System.java:1530)
at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:701)
at com.googlecode.javacpp.Loader.load(Loader.java:578)
at com.googlecode.javacpp.Loader.load(Loader.java:532)
at com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:136)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:400)
at com.googlecode.javacpp.Loader.load(Loader.java:553)
at com.googlecode.javacpp.Loader.load(Loader.java:532)
at com.googlecode.javacv.cpp.opencv_core$CvSize.<clinit>(opencv_core.java:2560)
请建议。