com.android.dex.DexIndexOverflowException: field ID not in [0, 0xffff]: 65536

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

Solutions on the web

via GitHub by kageiit
, 1 year ago
field ID not in [0, 0xffff]: 65536
via Stack Overflow by Peter Fortuin
, 2 years ago
field ID not in [0, 0xffff]: 65536
com.android.dex.DexIndexOverflowException: field ID not in [0, 0xffff]: 65536
at com.android.dx.merge.DexMerger$5.updateIndex(DexMerger.java:482)
at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:302)
at com.android.dx.merge.DexMerger.mergeFieldIds(DexMerger.java:490)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:173)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:195)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:488)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:268)
at com.facebook.buck.android.DxStep.executeInProcess(DxStep.java:206)
at com.facebook.buck.android.DxStep.execute(DxStep.java:186)
at com.facebook.buck.step.CompositeStep.execute(CompositeStep.java:43)
at com.facebook.buck.step.CompositeStep.execute(CompositeStep.java:43)
at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:63)
at com.facebook.buck.step.DefaultStepRunner$2$1.call(DefaultStepRunner.java:124)
at com.facebook.buck.step.DefaultStepRunner$2$1.call(DefaultStepRunner.java:1)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:108)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:41)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

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