© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
Mony Dragon

MAUI Project Unable to publish Android APK - Help?

So I'm developing a C#/MAUI application and I am having issues publishing a release/debug build. The project builds just fine just the publishing is causing an error anyone have experience with this?

(On a release build)
0>Xamarin.Android.Common.targets(519,3): Error XA1030 : The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration.

(On a debug build)
1>Xamarin.Android.Common.targets(1426,3): Error XALNS7028 : System.IO.FileNotFoundException: Could not load assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'System.Runtime.dll'

Any ideas on how to solve this? I can test my app on Windows/Android etc. but on publish I have the error above
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Unable to publish MAUI App
C#CC# / help
4y ago
.NET MAUI Android Licenses
C#CC# / help
16mo ago
❔ .NET MAUI Android Filesystem
C#CC# / help
3y ago