Closed succeed318 closed 1 year ago
@jonathanpeppers Thoughts?
@jsuarezruiz the error message in the screenshot has the same Assertion table_size
error as this one:
How do I generate apk
using the default configuration;
Use the following configuration to generate the APK:
<RunAOTCompilation>True</RunAOTCompilation>
<PublishTrimmed>True</PublishTrimmed>
What should i change?
@jonathanpeppers
Change to the following configuration, can be generated normally. The resulting apk
is about 60MB.
<RunAOTCompilation>False</RunAOTCompilation>
<PublishTrimmed>False</PublishTrimmed>
RunAOTCompilation=false
would be all you need to turn off AOT.
PublishTrimmed=false
turns off the trimmer/linker, that probably isn't solving anything and would make the app large (as you noticed).
Hi guys,
I'm getting the same error, any thoughts? But in my case, I'm getting error with a brand new Maui project.
@danielancines I would file a new issue, everyone here is getting:
* Assertion at D:\a\_work\1\s\src\mono\mono\mini\aot-compiler.c:11219, condition `table_size < 65000' not met
And it's not happening with new projects.
@jonathanpeppers Using the command dotnet publish -r win-x64 -c Release -f net7.0-windows10.0.19041.0
I'm getting this error on a brand new Maui project:
dotnet\sdk\7.0.102\Sdks\Microsoft.DotNet.ILCompiler\build\Microsoft.NETCore.Native.targets(278,5): error MSB3073: The command ""C:\Users\ancineda\.nuget\packages\[runtime.win](http://runtime.win/)-x64.microsoft.dotnet.ilcompiler\7.0.2\tools\\ilc" @"obj\Release\net7.0-windows10.0.19041.0\win-x64\native\Maui.AOT.ilc.rsp"" exited with code 1. [C:\code\Maui.AOT\Ma ui.AOT\Maui.AOT.csproj::TargetFramework=net7.0-windows10.0.19041.0]
S.O: Windows 10 Visual Studio 2022 - 17.4.4
Im my case, it happens when I add Microsoft.Graph (5.11.0)
Visual Studio Community 17.6.1
Error Precompiling failed for C:\git\MyProject\MyProject\obj\Release\net7.0-android\android-arm64\linked\Microsoft.Graph.dll with exit code -1073740791. Mono Ahead of Time compiler - compiling assembly C:\git\MyProject\MyProject\obj\Release\net7.0-android\android-arm64\linked\Microsoft.Graph.dll AOTID EA8EE00C-DBA5-6597-5F0E-0883CCE33C29 Using profile data file 'C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\7.0.86\Sdk\maui.aotprofile' Using profile data file 'C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\7.0.86\Sdk\maui-blazor.aotprofile' Added 0 methods from profile. Added 0 methods from profile.
The same error appears 4 times, for android-arm64, android-x86, android-x64 and android-arm
should be fixed by https://github.com/dotnet/runtime/pull/85952
use follow config: