Compiling APK with dex2oat on Linux host

1k views Asked by At

I am trying to compile an APK (more specifically, a dex file) to an OAT using dex2oat on a Linux host. I followed the instructions given here and I get the following error:

Could not create image space with image file '/home/user/Documents/Android/out/host/linux-x86/framework/x86_64/core.art'. Attempting to fall back to imageless running. Error was: Cannot compile image to /home/user/Documents/Android/out/host/datadir/dalvik-cache/x86_64/dalvik-cache/x86/home@user@Documents@Android@out@host@linux-x86@framework@[email protected]: Image compilation disabled.

Does it ring a bell, or is there another way to compile to OAT without using an emulator or a VM?

0

There are 0 answers