Skip to content Skip to sidebar Skip to footer

Build Xamarin.android Doesn't Work With Aot

I created new project xamarin forms protable. I didn't add other code in projects. When I build Android project with AOT options I get error: [AOT] E:\works\xamarin\projects\TestA

Solution 1:

Faced that if you enable llvm along with aot, it just gives you the above error. Some say it happens when you are compiling on a 64-bit windows, while compiling in cloud works fine. Anyway there's a solution, basically disabling the 'embedassembliesintoapk':

enter image description here

The above settings work fine for me.

Consider that aot+llvm can have an app startup time longer than with aot alone.

Credits: https://forums.xamarin.com/discussion/comment/302015/#Comment_302015

Solution 2:

AOT is still experimental by nature. Thus results may turn out to be unstable or in an unworking state.

https://developer.xamarin.com/releases/android/xamarin.android_5/xamarin.android_5.1/#AOT_Support

AOT and AOT+LLVM support has always been experimental. It has been discovered that AOT+LLVM support hasn't worked since at least Xamarin.Android 6.0; the AOT+LLVM compiler executed but didn't do anything. During QA, it was determined that in attempting to fix the "AOT+LLVM didn't do anything" issue, the AOT+LLVM compiler instead crashed.

Consequently, AOT+LLVM support has been disabled in the Xamarin.Android 6.1 release. It will be re-enabled in a future release.

https://developer.xamarin.com/releases/android/xamarin.android_6/xamarin.android_6.1/

Post a Comment for "Build Xamarin.android Doesn't Work With Aot"