Edit

Share via


.NET for Android error XA4233

Example messages

error XA4233: The <AndroidNamespaceReplacement> for 'com.example.androidx' does not specify a 'Replacement' attribute.

Issue

<AndroidNamespaceReplacement> items must include Replacement attribute

Solution

To resolve this error, ensure that the specified <AndroidNamespaceReplacement> contains a Replacement attribute:

<ItemGroup>
  <AndroidNamespaceReplacement Include="com.example.androidx" Replacement="Example.AndroidX" />
</ItemGroup>

Note it is valid for the Replacement attribute value to be empty, however the attribute must still be provided:

<ItemGroup>
  <AndroidNamespaceReplacement Include="com." Replacement="" />
</ItemGroup>