AOT/LLVM do not work

BlueRajaBlueRaja USMember ✭✭
edited September 2016 in Xamarin.Android

I tried testing my app's startup times using AOT/LLVM in the hopes of fixing this issue, but it appears they do not actually work. When I enable AOT+LLVM (or AOT alone), VS tells me "deploy failed". In the build logs I see:

[AOT] "C:\Projects\CSharp\MyApp\Droid\obj\Release\android\assets\MyApp.Droid.dll"
Could not AOT the assembly: obj\Release\android\assets\MyApp.Droid.dll
Build FAILED.

at Xamarin.VisualStudio.Android.Services.AndroidToolsBuildService.RunMSBuildTarget(Project project, IProgressReport progress, String msbuildTarget, IDictionary2 properties, IDictionary2 globalProperties) in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Core\VisualStudio.Android\Services\AndroidToolsBuildService.cs:line 133
at Xamarin.VisualStudio.Android.Services.AndroidToolsBuildService.InstallPackage(Project project, IMonoAndroidDevice device, IProgressReport progress) in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Core\VisualStudio.Android\Services\AndroidToolsBuildService.cs:line 89
at Xamarin.VisualStudio.Android.CommandHandlers.DeployCommandHandler.ExecuteDeploy(Project project, IMonoAndroidDevice device, IAndroidProjectProperties projectProperties, IProgressReport progress, CancellationToken cancellationToken) in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Core\VisualStudio.Android\CommandHandlers\DeployCommandHandler.cs:line 94
at Xamarin.VisualStudio.Android.CommandHandlers.DeployCommandHandler.Execute(DeployCommand command, IProgressReport progress, CancellationToken cancellationToken) in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Core\VisualStudio.Android\CommandHandlers\DeployCommandHandler.cs:line 66
at Xamarin.VisualStudio.Commands.CommandHandlerBase`2.Execute(TCommand command, CancellationToken cancellationToken) in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Core\VisualStudio\Commands\CommandHandlerBase.cs:line 125

C:\Users\builder is not a folder on my computer

Tagged:

Answers

  • BlueRajaBlueRaja USMember ✭✭

    Bump. It seems posting at 2:00am is not a good way to get views :P

  • MikeeSouthMikeeSouth USMember ✭✭

    I just tried AOT/LLVM and it works for me. It also greatly reduces startup times. I'm not sure why yours is failing though ><

  • @BlueRaja Hi. I have same problem.
    I get "Could not AOT the assembly".
    How do you fix it?
    Thank you.

  • AlbertKAlbertK MYMember ✭✭✭

    Hi,

    Just to confirm, I am running VS Community 2015 with Xamarin 4.2.0.719 and I do not see the AOT or LLVM option. Is it disabled in the latest version or the option is available in the Enterprise Edition?

  • KirillLyubimov.5134KirillLyubimov.5134 RUMember ✭✭
    edited November 2016

    @AlbertK Hi. Yes, AOT and LLVM options available in Enterprise but these don't work.

  • batmacibatmaci DEMember ✭✭✭✭✭

    Anyone found a solution here? I get exactly same message when I enable them

  • Hi,
    Any solution to enable AOT and LLVM option in Xamarin Studio? I don't see these options! Thank you!

Sign In or Register to comment.