- Home /
Unity doesn't find a *.so lib in my aar file
I have an android project which uses some basic stuff from OpenCV. I've write a wrapper which tries to use those function from outside. When I try to call that wrapper from Unity, in Android Device Manager I got the following error:
08-29 09:47:27.869: I/Unity(11713): AndroidJavaException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.loadingcvunity.wrappertestu-2/base.apk"],nativeLibraryDirectories=[/data/app/com.loadingcvunity.wrappertestu-2/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libopencv_java3.so"
08-29 09:47:27.869: I/Unity(11713): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.loadingcvunity.wrappertestu-2/base.apk"],nativeLibraryDirectories=[/data/app/com.loadingcvunity.wrappertestu-2/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libopencv_java3.so"
I know about the OpenCVforUnity lib but I'm not allowed to use it.
Can you please add some more details about the structure of your .aar ? also, what processor architecture is your .so library built for? also, what is the name of the .so ?
I'm trying to use opencv for android, ant id has built libraries for armeabi-v7a and many more. Unfortunately my android module which I got generated as .aar doesn't properly include the static lib
Your answer
Follow this Question
Related Questions
How to embed multiple external plugins (ads, tracking) on android without libraries overlapping 0 Answers
How to use Sqlite3 in Unity for android 0 Answers
IOException : Failed to Move File / Directory 4 Answers
Not rendering camera when using Unity as library on Android Studio 0 Answers
Send GIF in Text Message 0 Answers