Skip to content Skip to sidebar Skip to footer

Error Converting Bytecode To Dex: Multiple Dex Files, Android Studio 3.0

I recently upgraded to Android Studio 3.0, and while running the program I get the following error: Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Mul

Solution 1:

Finally, I was able to solve the problem. The error arose because of the two paths of Vuforia jar in Vuforia gradle. The following two lines in Vuforia Gradle are actually pointing to the same library jar.

compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/Vuforia.jar')

I simply removed the second compilation of jar and it removed my error.

Solution 2:

First, try to remove the .gradle folder in your project. Then you need to check for the dependencies from the dependency tree with the following command in Linux:

./gradlew app:dependencies

or if you're using Windows try this:

gradlew.bat app:dependencies

If you found duplicated dependencies in the list, you can exclude it with something like this:

compile('com.library.name:version') {
  exclude group: 'com.example', module: 'library'
}

Post a Comment for "Error Converting Bytecode To Dex: Multiple Dex Files, Android Studio 3.0"