Edit

.NET for Android error XA4254

Example message

error XA4254: Trimmable type map Java source input directory 'obj/Release/net11.0-android/typemap/java' and output directory 'obj/Release/net11.0-android/typemap/java' must be different.

Issue

The trimmable type map build tried to clean the Java source output directory, but the configured input and output directories resolved to the same path.

Cleaning the output directory in this configuration would delete the input Java sources before they can be copied.

Solution

This error indicates an internal build configuration problem. File an issue at https://github.com/dotnet/android/issues and include the full build log.