Build Xamarin.android Doesn't Work With Aot
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':
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"