Getting Exception java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions after updating to the new firebase

后端 未结 15 1660
渐次进展
渐次进展 2020-11-22 09:56

I have updated my application to the new firebase using the this and now when i compile my project i get the following exception.

Here is my logcat:

15条回答
  •  余生分开走
    2020-11-22 10:27

    This worked for me:

    1. If you haven't already, update your 'Google Play Services' to Revision 30 from Android SDK Manager > Extras.

    1. And then add the line compile 'com.android.support:multidex:1.0.1' to your dependancies (or simply remove multiDexEnabled true if not required)

    2. Add this attribute to the application tag in manifest: android:name="android.support.multidex.MultiDexApplication"
      If you already have a custom application class defined in Android Manifest, extend it from MultiDexApplication instead of Application

    Hope it helped!

提交回复
热议问题