Xamarin表单Android:获取XA3001:无法AOT程序集

Xamarin表单Android:获取XA3001:无法AOT程序集,xamarin,xamarin.forms,xamarin.android,aot,Xamarin,Xamarin.forms,Xamarin.android,Aot,无论链接器选项如何,几乎所有程序集(下面的列表)都会出现错误。我不知道AOT编译器的问题出在哪里。你有什么想法吗 编辑:我是xamarin和应用程序开发的新手。 具有诊断级别的完整错误消息。复制该问题的示例项目 受影响的组件: Projet "Chronique.Android.csproj" (Install cibles) : XA3001: Could not AOT the assembly: FFImageLoading.dll XA3001: Could not AOT the as

无论链接器选项如何,几乎所有程序集(下面的列表)都会出现错误。我不知道AOT编译器的问题出在哪里。你有什么想法吗

编辑:我是xamarin和应用程序开发的新手。 具有诊断级别的完整错误消息。复制该问题的示例项目

受影响的组件:

Projet "Chronique.Android.csproj" (Install cibles) :
XA3001: Could not AOT the assembly: FFImageLoading.dll
XA3001: Could not AOT the assembly: Chronique.dll
XA3001: Could not AOT the assembly: FFImageLoading.Forms.dll
XA3001: Could not AOT the assembly: FFImageLoading.Transformations.dll
XA3001: Could not AOT the assembly: Chronique.Android.dll
XA3001: Could not AOT the assembly: FFImageLoading.Platform.dll
XA3001: Could not AOT the assembly: FFImageLoading.Forms.Platform.dll
XA3001: Could not AOT the assembly: FormsViewGroup.dll
XA3001: Could not AOT the assembly: IF.Lastfm.Core.dll
XA3001: Could not AOT the assembly: Hqub.MusicBrainz.API.dll

**Configuration:**

Microsoft Visual Studio Enterprise 2017 
Version 15.8.5
VisualStudio.15.Release/15.8.5+28010.2036
Microsoft .NET Framework
Version 4.7.03056

Version installée : Enterprise

Mono Debugging for Visual Studio   4.11.11-pre (8fb558f)
Support for debugging Mono processes with Visual Studio.

Xamarin   4.11.0.776 (d15-8@1ae9b59d7)
Extension Visual Studio permettant de développer pour Xamarin.iOS et Xamarin.Android.

Xamarin Designer   4.15.9 (d000f568b)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   1.1.116 (9619170)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   9.0.0.19 (HEAD/a8a3b0ec7)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   12.0.0.15 (84552a4)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

我在我的慢速家用电脑上用AOT编译我的爱好项目,得到了类似的错误。我尝试了所有可行的解决办法,但没有成功。然后我试着用我最新的工作计算机进行编译,结果成功了


因此,如果没有解决方案,请不要忘记在更快的计算机上试用。

打开MSBuild的诊断级调试,清除/重建并发布完整的AOT生成错误。好的,我会做得很好,AOT似乎可以在我的appcenter生成上工作,可能是我本地visual studio上的一个错误。解决方案如下: