Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ExceptionInInitializerError - ZBar Android

So I just created a branch of my Android app then rebuilt and ran it. All is good exception when I try and load up a screen which uses ZBar I get an ExceptionInInitializerError exception.

The culprit code seems to be the following:

static {

    System.loadLibrary("iconv");
}

I've tried debugging this but I can't seem to catch the above exception. After reading it seems it is linked to not being able to find a native library.

Any ideas how to fix this?

like image 390
jim Avatar asked Nov 14 '12 11:11

jim


1 Answers

I solved it.

It was due to missing native code (.so files) in the folders { x86, armeabi, armeabi-v7a } in the Android projects libs folder.

For some reason subversion ignored these files so when I branched the code they didn't exist.

like image 170
jim Avatar answered Oct 22 '22 11:10

jim