ignore jnigraphics load errors
Nexus 4 w/ Android 5.0 Lollipop produces the following error message: java.lang.UnsatisfiedLinkError: Shared library "/system/lib/libjnigraphics.so" already opened by ClassLoader 0x0
This commit is contained in:
parent
2e1a1954d7
commit
eb4967e6f0
1 changed files with 1 additions and 3 deletions
|
@ -52,10 +52,8 @@ public class NativeOsmandLibrary extends NativeLibrary {
|
|||
try {
|
||||
System.loadLibrary("jnigraphics");
|
||||
} catch( UnsatisfiedLinkError e ) {
|
||||
// tolerate missing jnigraphics on Lollipop
|
||||
// handle "Shared library already opened" error
|
||||
log.debug("Failed to load jnigraphics: " + e); //$NON-NLS-1$
|
||||
if (android.os.Build.VERSION.SDK_INT <= 20)
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
final String libCpuSuffix = cpuHasNeonSupport() ? "_neon" : "";
|
||||
|
|
Loading…
Reference in a new issue