Fabric/Crashlytics NoClassDefFoundError only on certain devices

前端 未结 6 1234
醉酒成梦
醉酒成梦 2020-12-20 16:04

I\'m seeing a crash in Google Play related to Fabric/Crashlytics. This happened after I updated from normal Crashlytics to the new Fabric Crashlytics. I can only reproduce i

6条回答
  •  被撕碎了的回忆
    2020-12-20 17:07

    I just figured it out with a hunch! I recently had to add multi-dex support after upgrading to the new Fabric framework, and I had a feeling that maybe I didn't do it correctly. So after adding these additional changes, now it no longer crashes:

    In my build.gradle, I added an incremental settings:

    dexOptions {
            incremental true
            javaMaxHeapSize "4g"
        }
    

    and an additional dependency:

    compile 'com.android.support:multidex:'
    

    and on my application class I'm extending MultiDexApplication:

    public class TownsquareEvents extends android.support.multidex.MultiDexApplication
    

提交回复
热议问题