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

Published on Author Code Father
Getting Exception java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions after updating to the new firebase
  1. If you haven’t already, update your ‘Google Play Services’ to Revision 30 from Android SDK Manager > Extras.

Android SDK Manager > Extras > Google Play Services

  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

Comments

comments