android UnsatisfiedLinkError: Library not found

后端 未结 1 1386
栀梦
栀梦 2021-01-16 00:34

I checked out coolreader 3 from git repository http://sourceforge.net/projects/crengine/. I try to build it in eclipse, but when running it crashes with the following error:

1条回答
  •  醉梦人生
    2021-01-16 00:46

    Those are not standard names, as they lack the lib prefix.

    System.loadLibrary("lept");
    System.loadLibrary("tess");
    

    This is causes search for liblept.so which is not the file you have. Either give your library the standard name, or specify an actual file name including the path where it ends up installed on the device to

    System.load(("lept") 
    //rather than 
    System.loadLibrary().
    

    if it's unsatisfiedlink error then Without seeing your code just only assumption is your code trying to load shared library liblept.so and the library is not available at that path. Also the code you are using is either have that liblept.so file in any lib or internal package directory or you have to generate (build) that shared library by using Android-NDK try following tutorial1 , tutorial2

    0 讨论(0)
提交回复
热议问题