Main.main() has thrown a DexException
Typical Exception Messages
AndroidDxRunner.main() has thrown a DexExceptioncom.android.dex.DexException13 frames hiddenorg.jetbrains.android.compiler.tools.AndroidDxRunner.main19Web pages
Thread.run() has thrown a DexExceptioncom.android.dex.DexException19 frames hiddenjava.lang.Thread.run1Web pages
Occurs when a Module has a dependency on both another module and that same module's jar.
If that dependency came from 3rd party libraries, you can declare it, update library in your build.gradle, or remove old version from library by exclude statement.
Check the source of this solution for more info