java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions

前端 未结 12 912
野的像风
野的像风 2020-12-05 04:32

I was getting this weird error on my google developer console. So i used google Cloud Test Lab to See whats really happening. turns out my app is failing on almost all devic

12条回答
  •  醉梦人生
    2020-12-05 04:53

    Turns out my usage of MultiDex was wrong and that causes this error. This should have really been mentioned in the official documentation somewhere.


    How to do it the right way :

    In Gradle.build (app level)

    dependencies {
       compile 'com.android.support:multidex:1.0.1'
    

    In the Manifest, add

    In the Application class,

    public class Global extends MultiDexApplication {
    ...
    }
    

提交回复
热议问题