Archived Forum Post

Index of archived forum posts

Question:

libchilkat.so (Android) in Eclipse

Jul 05 '14 at 12:00

I have looked everywhere, seen several posts/articles on how to use a .so library in an Eclipse Android project, but nothing seems to be working.

Does anyone have or know of a step by step guide or tutorial on how to use the .so files distributed for the Android build of the chilkat libraries in Eclipse? I've tried to put the file in libs, libs/armeabi, src, etc, etc to get it included, but I can't seem to get the import statement to work. I've used the

static {
    try {
        System.loadLibrary("chilkat");
    } catch (UnsatisfiedLinkError e) {
        System.err.println("Native code library failed to load.\n" + e);
        System.exit(1);
    }
}

function to load the library.

I'm lost. Someone set me straight, please.


Answer

Seems like I answered my own issue...

The .so and the java files are required for the whole thing to work together.

Got it working. Now I just need to get the emulator talking to the server on my machine. Woot!