Im trying to import a custom gauge library made by someone ( Simple gauge view like speedmeter in android? ) into my project in android studio. It imports fine however, when I build the project i get the following error:
I have no idea what to look for, what this is or how to fix it. Any help is appreciated.
Thanks!
EDIT: the complete error message that im getting is:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.command.Main.main(Main.java:106)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.command.dexer.Main.run(Main.java:246)
Error:Execution failed for task ':app:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_67\bin\java.exe'' finished with non-zero exit value 2
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
Im guessing it has something to do with accessing two files (Landroid/support/annotation/AnimeRes) at the same time like it is refered to here ListViewAnimations Library Causes TOP-LEVEL-EXCEPTION But i cant find this file to test it.