- Throwable rootCause = e;
- while (rootCause.getCause() != null && rootCause.getCause() != rootCause) {
- rootCause = rootCause.getCause();
- }
- // UnsatisfiedLinkError happens when the libxwalkcore.so is not found.
- // If the runtime library package exist, but the native library not, it can
- // be considered that the installed runtime lib apk is for another cpu
- // architecture.
- if (rootCause instanceof UnsatisfiedLinkError) {
- wrongNativeLibraryAbi = true;
- toHandle = new XWalkRuntimeLibraryException(
- XWalkRuntimeLibraryException.XWALK_CORE_LIBRARY_SO_NOT_EXIST, e);
- } else {
- toHandle = new XWalkRuntimeLibraryException(
- XWalkRuntimeLibraryException.XWALK_RUNTIME_LIBRARY_NOT_INSTALLED, e);
- }
+ toHandle = new XWalkRuntimeLibraryException(
+ XWalkRuntimeLibraryException.XWALK_RUNTIME_LIBRARY_NOT_INSTALLED, e);