Is there a way to exclude .jar file from .aar file. My project is not running as I have one module that contains a .aar file in which Gson.jar is used as a library and I need it in my main app as well so I need to implement Gson dependency also. When I tried to run my project I got multidex error:
Execution failed for task ':app:transformClassesWithBundleMultiDexListForDevelopmentBuildDebug'.
com.android.build.api.transform.TransformException: Error while generating the main dex list.
Please help me to solve this issue. Thanks