How to enable AOT for other platforms besides iOS

Hi,

I found the JIT mode may cause some unexpected performance spike when some functions the first time entered. I want to try AOT on Android but didn’t find a way to do this. Does anybody know how to force enable AOT mode for the platforms besides iOS?

You can’t compile the functions in an AOT fashion, but you can compile them at a given moment (e.g. startup) like the PrepareMethod thing, look here: How to compile function? (to prevent JIT spikes) - Unity Answers

It is not currently possible.

AOT is available with Android´s new runtime - ART (available starting with Android 4.4)

See this link for more info: ART: The New Android Runtime

Unity support will probably be added in future releases.