com.android.dex.DexException: Multiple dex files define Lcom/google/protobuf/nano/CodedInputByteBufferNano;

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by user3302639

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.

Solutions on the web

via JIRA by William Sheehan, 1 year ago
Multiple dex files define Lcom/google/protobuf/nano/CodedInputByteBufferNano;
via JIRA by William Sheehan, 1 year ago
Multiple dex files define Lcom/google/protobuf/nano/CodedInputByteBufferNano;
via GitHub by markstubhub
, 1 year ago
Multiple dex files define Lcom/google/protobuf/nano/MessageNano;
via GitHub by theGlenn
, 2 years ago
Multiple dex files define Lcom/google/protobuf/AbstractMessage$1;
via GitHub by theGlenn
, 2 years ago
Multiple dex files define Lcom/google/protobuf/AbstractMessage$1;
via GitHub by jasongrishkoff
, 9 months ago
Multiple dex files define Lcom/google/firebase/FirebaseException;
com.android.dex.DexException: Multiple dex files define Lcom/google/protobuf/nano/CodedInputByteBufferNano;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:579)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:517)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:164)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)

Users with the same issue

Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 2 days ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.