Crash on using Zbar library in my application . Showing error when scanning QRcode

516 views Asked by At

Error: libiconv.so: has text relocations , libzbarjni.so: has text relocations

check error in view

2

There are 2 answers

4
Gowtham Subramaniam On

I got the same error messages when testing my app with Android 6.0. I solved my issue by checking the targetSDKVersion in the manifest file. Using "22" and not "23" as targetSDKVersion solved it.

<uses-sdk
    android:minSdkVersion="15"
    android:targetSdkVersion="22" />

I also checked the build.gradle files for compile version and targetSDKversion:

android {
     compileSdkVersion 23
     buildToolsVersion '23.0.3'

defaultConfig {
    applicationId 'com.android.live'
    minSdkVersion 15
    targetSdkVersion 22
    versionCode 1
    versionName '1.0.0'
    multiDexEnabled = true
}
0
Lim CHAN On

Follow me and solve this problem permanently! (Works well targetSdkVersion 25, buildToolsVersion '25.0.3', compileSdkVersion 25)

1.Download the latest ZBar project here

2.grab the latest .so from barcodescanner/zbar/src/main/jniLibs, and replace the relative .so in your project.

3.Run your app!