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

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

    You'd try following Code snippet:

    defaultConfig { 
        multiDexEnabled true
    }
    
    dependencies {
        compile 'com.android.support:multidex:1.0.0'
    }
    
    public class Controller extends Application {
    
     @Override
        protected void attachBaseContext(Context newBase)
     {
            super.attachBaseContext(newBase);
            MultiDex.install(this);
      } 
    }
    

提交回复
热议问题