Ive been searching for the solution of this error since yesterday. I tried everything. I deleted my .idea and .gradle file. I even invalidate cache and restart my android studio. I also re-install my android studio but to no avail. I am still getting this error. I didn't touch my project for about a month. When I came back. I updated my android studio and tried to run my project and was greeted with this error
java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Program type already present: android.support.v13.view.DragStartHelper$1
I had multidex enabled on my gradle. A month ago I don't have this problem. Right after updating my android studio I got this. Anyone have a solution? All the libraries I am using should be fine as I was able to release my app without having this error a month ago.
Okay. So after careful reading from other who had this problem, I needed to exclude the support v13 on gradle following the link here
configurations.all {
exclude group: 'com.android.support', module: 'support-v13'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With