I am trying to install ZBar Android SDK in Android Studio. My min supported API version is 22. I have tried methods in this and this question. Both methods resulted in various different errors when calling new ImageScanner()
. I kind of just hacked it together because there's no guide on how to install it in Android Studio.
This is my directory structure:
app/jniLibs/armeabi
app/jniLibs/armeabi-v7a
app/jniLibs/x86
app/libs/zbar.jar
I get the following error when I run ImageScanner scanner = new ImageScanner()
java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.example.aramesh.zbartestapp-1/lib/arm/libzbarjni.so: has text relocations