2

I'm trying to use the ZBar libraries in my project on Android Studio. I copy the armeabi armeabi-v7a and x86 folders inside libs folder of my project. I also copy the zbar.jar file inside libs.

The MainActivity and CameraPreview files are corect.

When I compile the project, the app crashes with this error:

java.lang.UnsatisfiedLinkError: Couldn't load iconv from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/it.coster.barcode-1.apk"],nativeLibraryDirectories=[/data/app-lib/it.coster.barcode-1, /vendor/lib, /system/lib]]]: findLibrary returned null
gabboSonc
  • 351
  • 2
  • 4
  • 16

1 Answers1

-1

Write following line in your activity file to load manually load library

System.loadLibrary( "iconv" );
Subhash Khimani
  • 427
  • 7
  • 22