question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

com.android.dex.DexIndexOverflowException: Cannot merge new index 67249 into a non-jumbo instruction

See original GitHub issue

I’m on RN=0.39, and I’ve successfully added/linked many other RN libs into my project. This lib is failing on Android builds with the error message below, please advise.

:app:preDexDebug
:app:dexDebug
Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION:
Unknown source file : com.android.dex.DexIndexOverflowException: Cannot merge new index 67249 into a non-jumbo instruction!
Unknown source file : 	at com.android.dx.merge.InstructionTransformer.jumboCheck(InstructionTransformer.java:111)
Unknown source file : 	at com.android.dx.merge.InstructionTransformer.access$800(InstructionTransformer.java:26)
Unknown source file : 	at com.android.dx.merge.InstructionTransformer$StringVisitor.visit(InstructionTransformer.java:74)
Unknown source file : 	at com.android.dx.io.CodeReader.callVisit(CodeReader.java:114)
Unknown source file : 	at com.android.dx.io.CodeReader.visitAll(CodeReader.java:89)
Unknown source file : 	at com.android.dx.merge.InstructionTransformer.transform(InstructionTransformer.java:50)
Unknown source file : 	at com.android.dx.merge.DexMerger.transformCode(DexMerger.java:837)
Unknown source file : 	at com.android.dx.merge.DexMerger.transformMethods(DexMerger.java:811)
Unknown source file : 	at com.android.dx.merge.DexMerger.transformClassData(DexMerger.java:784)
Unknown source file : 	at com.android.dx.merge.DexMerger.transformClassDef(DexMerger.java:680)
Unknown source file : 	at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:534)
Unknown source file : 	at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:164)
Unknown source file : 	at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
Unknown source file : 	at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)
Unknown source file : 	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
Unknown source file : 	at com.android.dx.command.dexer.Main.run(Main.java:277)
Unknown source file : 	at com.android.dx.command.dexer.Main.main(Main.java:245)
Unknown source file : 	at com.android.dx.command.Main.main(Main.java:106)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

89reactions
chirag04commented, Jan 9, 2017

@GeoffreyPlitt in your android/app/build.gradle add the dexOptions.

android {
   dexOptions {
        jumboMode true
    }
}
6reactions
strjoshicommented, Nov 23, 2017

please look @ https://developer.android.com/studio/build/multidex.html

enable multidex in your build.gradle file.

android { defaultConfig { … minSdkVersion 15 targetSdkVersion 26 multiDexEnabled true } … }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot merge new index 65536 into a non-jumbo instruction ...
I was getting com.android.dex.DexIndexOverflowException: Cannot merge new index 66636 into a non-jumbo instruction! android { .
Read more >
Cannot merge new index 65961 into a non-jumbo instruction ...
Android Package build fails with "DexIndexOverflowException: Cannot merge new index 65961 into a non-jumbo instruction" error.
Read more >
Android Error in Eclipse: “Unable to execute dex: Cannot ...
Android Error in Eclipse: “Unable to execute dex: Cannot merge new index 65799 into a non-jumbo instruction!” ... I am trying an Android...
Read more >
Cannot merge new index 66299 into a non-jumbo instruction ...
打包时控制台输出: 在主工程的build.gradle文件,android{} 内添加如下内容android.dexOptions { jumboMode = true// javaMaxHeapS.
Read more >
Android Error in Eclipse: "Unable to execute dex: Cannot ...
Coding example for the question Android Error in Eclipse: "Unable to execute dex: Cannot merge new index 65799 into a non-jumbo instruction!"-eclipse.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found