Search code examples
androidzbar

ZBAR android ARM 64 couldn't find "libiconv.so"


On samsung galaxy s6 edge my app crashes when calling the zbar sdk, for scanning. I think it is because I don't have an arm64 version of zbar.

This is the end of the crash log:

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/.../base.apk"],nativeLibraryDirectories=[/data/app/.../lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libiconv.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)

I seen in my project that i don't have arm64 jni libs for zbar is this related ? and if so where can i get libiconv.so libzbarjni.so for arm64 ?


Solution

  • So finally found the zbar 64 bit from here:

    https://github.com/SkillCollege/ZBarAndroidSDK/tree/master/ZBarScanProjAll/libs

    it is found under arm64-v8a. All i had to do is rename the so file to match my project.