Thursday, 15 May 2014

android - Using Art instead of Dalvik to compile -



android - Using Art instead of Dalvik to compile -

i'm using eclipse , have new project using android version 21 (5.0). want compile using fine art instead of dalvik. have accomplish that?

edit : reason of question have problem:

[2014-11-12 10:30:49 - dex loader] unable execute dex: method id not in [0, 0xffff]: 65536 [2014-11-12 10:30:49 - mamut] conversion dalvik format failed: unable execute dex: method id not in [0, 0xffff]: 65536

i expected doing solve problem:

of particular note suggestion of making minsdkversion 21 dev build - allows generate multi-dex output incrementally in new fine art format, making much faster development iteration cycle (at to the lowest degree on android 5.0 devices).

thanks

of particular note suggestion of making minsdkversion 21 dev build - allows generate multi-dex output incrementally in new fine art format, making much faster development iteration cycle (at to the lowest degree on android 5.0 devices).

that's wrong , should read roughly

of particular note suggestion of using android build tools 21.1 , higher multidex back upwards library - allows utilize multiple dex files in dex format hasn't changed @ all, making unchanged development.

the problem of dex format can't contain more 65536 methods. solution simpliy split output multiple dex files. there 2 problems had in past

the dx tool not capable produce multiple dex files it's complicated utilize multiple dex files on device since devices load 1 dex file , code in other ones has loaded somehow manually.

build tools 21 solve first problem, can generate multiple dex files adding -multi-dex flag compile options.

the multidex back upwards library solves sec problem. tells devices how load additional dex files. , fine art runtime on lollipop , above (4.4 had fine art can't same) capable of using multiple files without beingness told how so.

also relevant official building apps on 65k methods document.

android eclipse adt dalvik

No comments:

Post a Comment