zynkware / Document-Scanning-Android-SDK

Document Scanner is an Android library (kotlin based) for scanning documents based on CameraX API and a tiny version of OpenCV.
163 stars 63 forks source link

couldn't find "libopencv_java4.so #6

Open Ahmed-AlHahsimi-SEDRA opened 2 years ago

Ahmed-AlHahsimi-SEDRA commented 2 years ago

I added the SDK as a dependency in my SDK that I'm developing, and i get this error:

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/my.package.name-3OPmS4W8io79ci6dEHJ9OA==/base.apk"],nativeLibraryDirectories=[/data/app/my.package.name-3OPmS4W8io79ci6dEHJ9OA==/lib/arm64, /system/lib64]]] couldn't find "libopencv_java4.so"

the error happens in the Application's class onCreate() method DocumentScanner.init(this, configuration)

I also tried adding the SDK into my app directly and i got the same error