com.android.jack.api.v01.CompilationException: Dex writing phase: classes.dex has too many IDs. Try using multi-dex

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 Stack Overflow by Karim Fikani
, 1 year ago
Dex writing phase: classes.dex has too many IDs. Try using multi-dex
via GitHub by Aranda
, 1 year ago
Library reading phase: file '/Users/aranda/code/SignatureCapture/app/build/intermediates/packaged/debug/classes.zip' is an invalid library
via yydcdut.com by Unknown author, 1 year ago
Dex writing phase: classes.dex has too many IDs. Try using multi-dex
via GitHub by Miger88
, 1 year ago
Library reading phase: Type com.google.inject.CreationException from file 'F:\Android_Studio_Workspace\JASDB\app\build\intermediates\jill\debug\packaged\guice-3.0-no_aop-b10b9c9189ee903679dde521c0f49f4c3b1278bd.jar' has already been imported from
via Stack Overflow by Daniele Vitali
, 1 year ago
Library reading phase: file '/Users/daniele.vitali/Development/android-studio/INTROCKAND/app/build/intermediates/packaged/debug/classes.zip' is an invalid library
via google.com by Unknown author, 10 months ago
Library writing phase: I/O error when accessing file 'C:\Users\mauricio-MTM\AndroidStudioProjects\GestaoEquipe\app\build\intermediates\transforms\preJackPackagedLibraries\vivo\debug\jars\8000\1f\classes- .jar': directory 'C:\Users\MAURIC~1\AppData
com.android.jack.tools.merger.MethodIdOverflowException: Method ID overflow when trying to merge dex files
at com.android.jack.tools.merger.ConstantManager.addDexFile(ConstantManager.java:177)
at com.android.jack.tools.merger.JackMerger.addDexFile(JackMerger.java:69)
at com.android.jack.backend.dex.DexWritingTool.mergeDex(DexWritingTool.java:149)
at com.android.jack.backend.dex.SingleDexWritingTool.write(SingleDexWritingTool.java:57)
at com.android.jack.backend.dex.DexFileWriter.run(DexFileWriter.java:87)
at com.android.jack.backend.dex.DexFileWriter.run(DexFileWriter.java:41)
at com.android.sched.scheduler.ScheduleInstance.runWithLog(ScheduleInstance.java:203)
at com.android.sched.scheduler.MultiWorkersScheduleInstance$SequentialTask.process(MultiWorkersScheduleInstance.java:466)
at com.android.sched.scheduler.MultiWorkersScheduleInstance$Worker.run(MultiWorkersScheduleInstance.java:163)

Users with the same issue

You are the first who have seen this exception.

Write tip

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