Kotlin compiler on android
I'm trying to create a dex of the huge jar of the kotlin commandline compiler , so I can develop (i.e. compile) kotlin on a phone (in termux ). But dx runs out of RAM and is "Killed". So, maybe divide into smaller dex s, and run as multidex? (also, close all other apps!) Divide into dex s : fully extract the jar to files; separate with parallel directory structures; then apply dx to create one dex per root. This worked, and I found dx could handle up to 13MB of classes, and I got the total 100MB of classes into 9 dex s. Specify multiple dex s to dalvikvm - just like multiple jars with regular