java.lang.ClassNotFoundException: Didn't find class on path: DexPathList , After updating sdk

后端 未结 5 1588
情话喂你
情话喂你 2021-01-18 03:08

Hello guys My application was all working fine till yesterday, i updated my SDK yesterday and it started giving error first it gave an error

No resou

5条回答
  •  粉色の甜心
    2021-01-18 03:10

    Write a class EnableMultiDex like below

    public class EnableMultiDex extends MultiDexApplication {
        private static EnableMultiDex enableMultiDex;
        public static Context context;
    
        public EnableMultiDex(){
            enableMultiDex=this;
        }
    
        public static EnableMultiDex getEnableMultiDexApp() {
            return enableMultiDex;
        }
    
        @Override
        public void onCreate() {
            super.onCreate();
            context = getApplicationContext();
    
        }
    }
    

    and in AndroidManifest.xml write this class inside Application tag

     
    

提交回复
热议问题