After the update to Android MapBox SDK 4.1.0/4.1.1 my app crashes on Android emulator with:
E/mbgl: [Shader]: Vertex shader fill failed to compile: precision
Is this known problem? Can this crash affect production build on physical devices? Is there any workaround?
Answer —
I also saw the same crash on an x86 emulator in OS X with Android Studio. The same app passed on an ARM device.
As you mentioned, the emulators are Intel x86 Atom_System images.
The Mapbox Android SDK compiled in with gradle as an AAR file includes several shared objects for different device processors including for ARM, x86 and MIPS.
That is, when you use this
compile ('com.mapbox.mapboxsdk:mapbox-android-sdk:4.1.0@aar')
You get several libmapbox-gl.so shared objects in your Android APK