Enable AOT in Xamarin for Android (Visual Studio)
<p>I know that there's support for AOT in Xamarin for Android. After the software became free, all of its features became free as well. I read around the documentation and I enabled AOT by modifying my <strong>project.csproj</strong> file, as follows:</p>

<pre><code>&lt;AotAssemblies&gt;True&lt;/AotAssemblies&gt;
</code></pre>

<p>After making sure that my project path doesn't contain spaces (breaks process), I ran a build and I got an APK with <strong>both</strong> managed .NET DLLs <strong>and</strong> native compiled libs. Sadly, the app seems to be using the .NET DLLs and completely ignoring the native libs. Is there any way I can remedy this?</p>

<p>EDIT: Reading around some other Mono AOT-related questions, it appears that this might be how it is supposed to work. I wanted to AOT-compile my app in hopes to reduce the ~2 seconds start-up time, which did not change at all after I switched from JIT to AOT. Can somebody please explain this this to me?</p>

<p>BONUS: Is there any way I can enable advanced optimization flags? (e.g. -o)</p>