Edit

.NET for Android error XA4321

Example messages

error XA4321: NativeAOT DGML file '{file}' was not found.

Issue

The .NET for Android build could not find a NativeAOT DGML scan file needed to generate trimmable type map ProGuard configuration.

Solution

This error is expected only for internal build state inconsistencies. Rebuild the project from a clean state and verify the NativeAOT compile produced the DGML scan file for the selected Runtime Identifier.