Xamarin Forms Android: получение XA3001: не удалось выполнить сборку AOT

Получение ошибки почти на всех сборках (список ниже) независимо от варианта компоновщика. Я не понимаю, в чем проблема с компилятором AOT. У вас есть идея?

EDIT: я новичок в 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.

person Sebastien Delaherche    schedule 27.09.2018    source источник
comment
Включите отладку уровня диагностики для MSBuild, очистите/перестройте и опубликуйте полные ошибки сборки AOT.   -  person SushiHangover    schedule 28.09.2018
comment
Хорошо, я сделаю это   -  person Sebastien Delaherche    schedule 05.10.2018
comment
Ну, кажется, что-то работает над моими сборками appcenter, может быть, это ошибка в моей локальной визуальной студии.   -  person Sebastien Delaherche    schedule 07.10.2018
comment
Решение здесь: stackoverflow.com/a/53979275/7149454   -  person Nick Kovalsky    schedule 30.12.2018


Ответы (1)


Я компилировал с помощью AOT для своего хобби-проекта на своем медленном домашнем ПК, получая аналогичные ошибки. Я перепробовал все доступные обходные пути, но безуспешно. Затем я попытался выполнить компиляцию на своем последнем рабочем компьютере, и все прошло успешно.

Поэтому, пожалуйста, не забудьте попробовать более быстрый компьютер, если никакие обходные пути не работают для вас.

person Waqas    schedule 11.12.2020