Getting 'app:transformClassesWithDexForDebug' error on compiling the project having useLibrary 'org.apache.http.legacy' in build.gradle

前端 未结 5 1836
悲&欢浪女
悲&欢浪女 2021-01-18 11:40

I\'m developing an app in which I\'m using this library.

On compiling the project, this error containing TransformException and RuntimeException<

5条回答
  •  误落风尘
    2021-01-18 11:58

    Put this code in your first activity(starting activity of the app):

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

提交回复
热议问题