| title | .NET for Android error XA4255 | |
|---|---|---|
| description | XA4255 error code | |
| ms.date | 05/20/2026 | |
| f1_keywords |
|
error XA4255: Generated trimmable type map Java source 'obj/Release/net11.0-android/typemap/java/my/app/MainActivity.java' was not found.
The post-trim trimmable type map scan expected to copy a generated Java source file from the pre-trim Java source directory, but the file was missing.
This can happen if intermediate build outputs are stale or if the generated Java source list no longer matches the files on disk.
Delete the project's obj and bin directories, then rebuild.
If the error persists after a clean rebuild, file an issue at https://github.com/dotnet/android/issues and include the full build log.