Some time ago began to switch to Android studio, and behold the use of the time encountered some errors, write down here!
This error often occurs in the Libs directory with a jar package, which is then referenced in the Gradle file, namely:
A common reference.
Workaround:
1, since in the Gradle file quoted, that is 2, then the Libs in the deletion.
2, change the configuration in 1, that is, the compile changed to provided, the change method can be changed manually, or it can be changed in structure, namely:
There is another possibility that the project needs to refer to other projects as a library, and your own project also refers to the jar package, which leads to a duplicate reference, the change method is the above method two, change one of the project's Gradle file, That is, change the compile to provided ...
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Com.android.dex.DexException:Multiple dex files define (Jar package duplicate reference) error resolution