I have been using vtm-mapsforge for some time in multiple projects (currently using org.mapsforge:vtm-android:0.9.2) but recently I included a dependency library for Gif images (pl.droidsonroids.gif:android-gif-drawable:1.2.12) that I have been using in other projects into the same project I've been using vtm-mapsforge and then the app crashs with an InflateException pointing to the specific Line in which I have the MapView in my layout. I debugged the application and it crashes specifically in the line in which the MapView class tries to load the system libraries:
private static void init() {
System.loadLibrary("vtm-jni");
}
I only tested the app in Samsung and HTC devices, in an HTC One m8 the app was good, but in Samsung S7, S8, Note 8 crashes like the description above. I also checked if the libvtm-jni.so lib was present in the installed application data and the result was missing in the Samsung devices and present in the HTC device...
In addition the gif library uses this native lib libpl_droidsonroids_gif.so which is present in HTC and missing in Samsung devices.
Besides the fact that I could change the gif library I would like to understand this problem and how to fix it.
Note: Using org.mapsforge:vtm-android:0.9.2 and pl.droidsonroids.gif:android-gif-drawable:1.2.12 in separated projects works fine.
Thanks in advance.