6

I'm getting this exception while building my application.

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Too many classes in --main-dex-list, main dex capacity exceeded
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:494)
at com.android.dx.command.dexer.Main.runMultiDex(Main.java:332)
at com.android.dx.command.dexer.Main.run(Main.java:243)
at com.android.dx.command.dexer.Main.main(Main.java:214)
at com.android.dx.command.Main.main(Main.java:106)

I searched all and got the workaround here:

http://blog.osom.info/2014/12/too-many-methods-in-main-dex.html

But what is the proper solution for this issue?

akshay
  • 5,811
  • 5
  • 39
  • 58
  • 2
    Possible duplicate of [Too many classes in --main-dex-list, main dex capacity exceeded](http://stackoverflow.com/questions/32721083/too-many-classes-in-main-dex-list-main-dex-capacity-exceeded) – Alex Lipov Apr 15 '16 at 07:16

0 Answers0