I have a rather large shared library file (= 12megabytes) which does not contain any JNI code whatsoever.
When calling System.loadLibrary("some_file")
the method never returns and no relevant output is generated. Also, Windows Taskmanager reports that the emulator instance is not hogging all the CPU power.
I have a class with the following code:
static
{
System.out.println("Trying");
System.loadLibrary("some_file");
System.out.println("Works");
}
Here is the output given from LogCat:
I/System.out(534): Trying
D/dalvikvm(534): Trying to load lib /data/data/app/lib/libsome_file.so 0x40643c20
If I upload a native test application that uses the library libsome_file.so and run this from the emulator shell, then the application works.
Is there any method to debug what System.loadLibrary is doing or does anyone have some hints why System.loadLibrary might never return?