Our project uses a NuGet package we publish internally to access a native geospatial library. We use the <AotAssemblies> tag to enable AOT compilation, as we have found it provides significant performance improvements to our project.
When I compile and deploy with Xamarin Studio 6.1.1 and Xamarin.Android 22.214.171.124, packaging fails with the error message "error XA3001: Could not AOT the assembly: obj/Release/android/assets/<our_library>.dll". I've tested downgrading to Xamarin Studio 6.0.2 and Xamarin.Android 6.1.2, and that version is able to AOT the assembly. Other team members who have updated their Windows installations to the most current versions are also experiencing this problem.
There doesn't seem to be any more information available, the build log's line before the error is emitted just basically says it's trying to AOT. Previous versions of Xamarin are able to AOT the assembly, and it hasn't changed in the past month, so it seems to be a problem with the Xamarin AOT compiler.
I have same problem. I don't get other logs except "Could not AOT the assembly"
Does the problem present on the latest Visual Studio for Mac?
Have you tried deleting your 'obj' and 'bin' folders, clean and rebuild?
It would be great to see a repo if you're still having issues.
Sorry, we disabled AOT and are no longer tracking this issue.
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Android. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.