Closed ceoy closed 1 year ago
Hey @ceoy,
It seems like it isn't able to find the native library of the maps-core module. Are you sure that you call OpenSwissMaps.initialize()
early enough, e.g. in onCreate of your Application? This should take care of the necessary System.loadLibrary
calls to properly load in the native libraries.
I'm intrigued by the fact that you can't reproduce it on you own devices (debug and release builds?).
I feel stupid 😆
Thanks to your input, I noticed that I've put OpenSwissMaps.initialize()
inside the Activity's onCreate instead of the Application's onCreate.
When I kill the app and restart it, I can reproduce the issue and also confirm that moving the initialization to the application fixes the crash.
Thank you!
We have an android app that has a
SwisstopoMapView
.now in production, we receive quite a few errors via sentry, but we cannot reproduce the issue on any of our devices.
proguard-rules.pro
version
I'm not sure if there is something I am doing wrong or if this is an error you have seen before as well?
Thank you :)