diff --git a/java/com/facebook/soloader/SoLoader.java b/java/com/facebook/soloader/SoLoader.java index de7bc4b..ab6cc55 100644 --- a/java/com/facebook/soloader/SoLoader.java +++ b/java/com/facebook/soloader/SoLoader.java @@ -893,7 +893,11 @@ private static void doLoadLibraryBySoName( sb.append(" result: ").append(result); final String message = sb.toString(); Log.e(TAG, message); - throw new UnsatisfiedLinkError(message); + UnsatisfiedLinkError err = new UnsatisfiedLinkError(message); + if (error != null) { + err.initCause(error); + } + throw err; } } }