Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
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 18.104.22.168, 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.