-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to load natives on older Android versions #17
Comments
Thanks for the detailed report. Yeah, seems pretty easy to do, |
Thanks for the quick reply! |
Alright, I've updated the native libs in 525008c, no difference on my device, hopefully it actually works for those older androids. (I suggest making clean builds). I have no old android devices on my hands so sadly I can't try the fix myself 😔 |
Thanks! I'll include a fresh libgdx-oboe lib into my next app release and see how it behaves. Will come back to you in a few weeks. |
Hey everyone. I did some testing in the Android Emulator with API 22 and thought I'd add my findings here. I still got a crash with the build in 525008c, so I tried building the library myself. However I got it to work by lowering TOOLCHAIN_VERSION to 21 (lowest that worked on my end). My guess is, it was just luck for the previous TOOLCHAIN_VERSION of 33 to work on older devices. You can find my full code (with an older version and a custom build script) over here. Feel free to use of it what you find useful. |
Sorry for the late report, but I can confirm, the crashes are still there at I don't have any ideas at this point, but someone just reported an oddly similar issue for one of my native-based libGDX libs. This thing gets hairy 😞 |
We're using
libgdx-oboe
built from the cb25562 and some of our users on older Android devices experience a fatal crash during app initialization time.It appears that the
libavformat.so
native lib is failed to load. And the exception is:Some googling led me to this StackOverflow thread about a similar issue -
https://stackoverflow.com/questions/28638809
Sounds like building the
libavformat.so
(and possibly some other dependencies) with-Wl,--hash-style=both
would fix the issue.We have crash reports only from Android 5.1 devices. But one of the answers from StackOverflow says that only the devices prior Android 8 are affected.
Now, at this point, I have little experience with Android NDK and I cannot tell:
-Wl,--hash-style=both
?Here's the full exception stack trace:
The text was updated successfully, but these errors were encountered: