Recently we're encountering a very weird issue in production, and it only happens intermittently even on some modern Android devices. The issue is "java.lang.UnsatisfiedLinkError: No implementation found" when a specific function is called, and that function is called every time but the issue does not occur all the time. We've tried using ReLinker but unfortunately the issue hasn't been resolved.
A bit of the background, we develop a SDK which is part of an Android app. In our SDK, we make use of some native functions. The loading of the native library using System.loadLibrary()
is done in the static block of our main class. So by right, when our class is triggered, our native library should be loaded, and that issue shouldn't occur, unfortunately it's not the case here. Is there a possibility that a function from our SDK is invoked while the library is not loaded yet?
We're kind of stuck and really running out of thoughts, so any help would be really appreciated. Thank you!