Error on some devices - couldn't find class 'com.google.android.gms.measurement.internal.zzz'

前端 未结 3 1982
刺人心
刺人心 2020-12-03 03:22

I am working on an Android Custom Launcher. The application runs perfectly on some phones but do not start on others. On launching the application the following error occurs

3条回答
  •  被撕碎了的回忆
    2020-12-03 03:55

    So after a lot of searching i came to know that this problem was due to the multidexing. On some phones multidexing don't work. May be due to their Android Version. However i fixed this by introductng an application class

    public class MyApplication extends Application {
    
        protected void attachBaseContext(Context base) {
            super.attachBaseContext(base);
            MultiDex.install(this);
        }
    }
    

    and in menifest i entered the name in application tag like:

    
    

提交回复
热议问题