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

Stack Overflow | Karim Fikani | 3 months ago
  1. 0

    Gradle build hanging when jackOptions is enabled for Java 1.8

    Stack Overflow | 3 months ago | Karim Fikani
    com.android.jack.api.v01.CompilationException: Dex writing phase: classes.dex has too many IDs. Try using multi-dex
  2. 0

    Android Dex分包之旅 | Android杂文 - yydcdut

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

    Root Cause Analysis

    1. com.android.jack.tools.merger.MethodIdOverflowException

      Method ID overflow when trying to merge dex files

      at com.android.jack.tools.merger.ConstantManager.addDexFile()
    2. com.android.jack
      DexFileWriter.run
      1. com.android.jack.tools.merger.ConstantManager.addDexFile(ConstantManager.java:177)
      2. com.android.jack.tools.merger.JackMerger.addDexFile(JackMerger.java:69)
      3. com.android.jack.backend.dex.DexWritingTool.mergeDex(DexWritingTool.java:149)
      4. com.android.jack.backend.dex.SingleDexWritingTool.write(SingleDexWritingTool.java:57)
      5. com.android.jack.backend.dex.DexFileWriter.run(DexFileWriter.java:87)
      6. com.android.jack.backend.dex.DexFileWriter.run(DexFileWriter.java:41)
      6 frames
    3. com.android.sched
      MultiWorkersScheduleInstance$Worker.run
      1. com.android.sched.scheduler.ScheduleInstance.runWithLog(ScheduleInstance.java:203)
      2. com.android.sched.scheduler.MultiWorkersScheduleInstance$SequentialTask.process(MultiWorkersScheduleInstance.java:466)
      3. com.android.sched.scheduler.MultiWorkersScheduleInstance$Worker.run(MultiWorkersScheduleInstance.java:163)
      3 frames