Archived Forum Post

Index of archived forum posts

Question:

UnsatisfiedLinkError when I import libchilkatzip.so file

Oct 08 '14 at 12:38

I'm trying to import the libchilkatzip.so library into my Java Android Project. I'm using Android Studio with Windows 8.1 - 64x.

In the code line System.LoadLibrary("libchilkatzip") I get the following exception:

java.lang.UnsatisfiedLinkError: Couldn't load CkZip from loader dalvik.system.PathClassLoader[dexPath=/data/app/de.xy.xyz-107.apk,libraryPath=/data/app-lib/de.xy.xyz-107]: findLibrary returned null

I have imported all .so files under the libs Directory: "armeabi", "armeabi-v71", "mips" and "x86". The Java files are also in my Project under com.chilkatsoft.


Answer

The string passed to LoadLibrary should be "chilkatzip" not "libchilkatzip"


Answer

Android Studio has some problems including native .so libs. See this: https://groups.google.com/forum/#!msg/adt-dev/nQobKd2Gl_8/Z5yWAvCh4h4J