I lost a few hours in this problem, but I think I found solutiΓ³n, at least for mine. Andoid Studio told me that I have "Several dex files define Landroid / support / annotation / AnimRes"; but he said that he had an input file inputList.txt with an error. Well, I found this file in the directory tree, and I found it in the app / build / intermediates / tmp / dex / debug folder. A file is a simple text file that has one line for each dependency as support annotations or the androidplot-core with an absolute path.
I saw a few lines, and I thought that if I delete, I will solve the problem, but that did not work.
Then I searched this route and all .jar are in the same place: app / build / intermediates / pre-dexed / debug / folder and I saw duplicate .jar files and I deleted it after I went to the file and I also deleted the duplicate lines.
Then I run my project, and the error disappeared, the problem was resolved.
The problem was this: .jar files duplicated in this folder.
Easy!
source share