com.android.dex.DexIndexOverflowException: Cannot merge new index 67249 into a non-jumbo instruction
See original GitHub issueI’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:
- Created 7 years ago
- Reactions:7
- Comments:18 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@GeoffreyPlitt in your android/app/build.gradle add the dexOptions.
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 } … }