MapBox Android application crashes after update to SDK 4.1.0 on emulator

后端 未结 4 1643

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         


        
4条回答
  •  梦谈多话
    2021-01-16 12:16

    Is this known problem? Can this crash affect production build on physical devices? Is there any workaround?

    Answer

    • If you crash on a x86 emulator, then there is a really good chance it will crash on a x86 device.
    • If you pass testing on a ARM device, there is a really good chance your app will work fine on ARM devices
    • If that doesn't answer your initial question, then there is Mapbox issue #5456 that has some discussion.

    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

提交回复
热议问题