Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Precompiled dex library

Tags:

android

dex

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.

like image 474
Alexander Ponomarev Avatar asked Nov 14 '22 12:11

Alexander Ponomarev


1 Answers

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.

like image 106
mav Avatar answered Nov 16 '22 03:11

mav