java.lang.NoClassDefFoundError retrofit2.Utils

后端 未结 11 1554
梦毁少年i
梦毁少年i 2020-12-30 10:40

I\'m using Retrofit to handle the Serverside Data from Mobile. After Implementing retrofit, I am Getting the below Exception.

What am I doing wrong?

11条回答
  •  忘掉有多难
    2020-12-30 11:12

    I was facing this error below lollipop devices.

    I was using multiDexEnabled true.

    After adding this code to the class extending Application class my issue solved.

    @Override
    protected void attachBaseContext(Context context) {
        super.attachBaseContext(context);
        MultiDex.install(this);
    }
    

    reference: https://stackoverflow.com/a/39968486/4777524

提交回复
热议问题