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

前端 未结 12 962
野的像风
野的像风 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:54

    If this can help other I solved this using this, although this is nowhere linked with Firebase but it actually solved my crash

    1. Add compile 'com.android.support:multidex:1.0.1' to app/build.gradle.

    2. Add android:name="android.support.multidex.MultiDexApplication" to the application tag in AndroidManifest.xml.

    3. If you are using a custom Application class, skip the AndroidManifest.xml and make your Application class extend MultiDexApplication instead of Application.

提交回复
热议问题