Edit

.NET for Android error XA1050

Example messages

error XA1050: The 'AndroidR8ObfuscationMode' MSBuild property has an invalid value of 'private-member'. Valid values are 'disabled' and 'private-members'.

Issue

The $(AndroidR8ObfuscationMode) MSBuild property contains an unsupported value. This property is validated when R8 runs.

Solution

Set $(AndroidR8ObfuscationMode) to one of the supported values:

<PropertyGroup>
  <AndroidR8ObfuscationMode>private-members</AndroidR8ObfuscationMode>
</PropertyGroup>

Use disabled to preserve all Java names and use the legacy non-optimizing Android R8 configuration.