Is there any way to compile android dll with AOT options?

hi, i want to compile unity android dll with AOT options, just like compiling for iPhone.

but i don’t know how to do that, cause no such option was found in Unity Editor.

You can’t. Unity only AOT compiles for iOS. (I believe mono cross-compiles to Dalvik classes.) I’ve wanted to do it too, for obfuscation and speed reasons, but it’s not an option. (There’s also hardware / CPU differences (even Android x86!) that you’d have to worry about that Dalvik shields you from.

I would think it generates native assembly.