5

My Android project contains a plenty of Java libraries that are compiled to dex each time I launch my application. The libraries do not change. Is there any way to precompile those libraries to dex? It make useless work each time compiling the same libraries to dex while making apk.

Jan
  • 11,636
  • 38
  • 47
Alexander Ponomarev
  • 2,598
  • 3
  • 24
  • 31
  • 1
    Relevant: [Issue 11604: dx should be able to merge multiple dex files](http://code.google.com/p/android/issues/detail?id=11604). – Jan Apr 06 '12 at 10:02

2 Answers2

1

I had similiar problem and have found a solution, you have to use (undocumented) --incremental switch with dex too. Refer to this solution on SO for more information.

Community
  • 1
  • 1
mav
  • 1,230
  • 1
  • 15
  • 23
0

This might be the only current workaround: http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html

Jared
  • 76
  • 3