Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Program type already present: android.support.v13.view.DragStartHelper$1

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.

like image 876
CodeAndWave Avatar asked Mar 16 '18 09:03

CodeAndWave


1 Answers

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'
}
like image 142
CodeAndWave Avatar answered Sep 17 '22 14:09

CodeAndWave