I am getting an error when generate apk in release mode. The error is Duplicate jar entry [com/android/volley/R.class]. I knew that the issue is caused because I am using an external jar file which contains Volley & I am using Volley in my project. I would like to know how I can exclude the dependency from the external jar files.
It happen when the condition
minifiedEnabled is true
I saw similar questions but none of them helped me.