Edit

Share via


.NET for Android error XA4234

Example message

error XA4234: '<AndroidMavenLibrary>' item 'com.example:mylib' is missing required attribute 'Version'.

Issue

The specified MSBuild XML item requires the specified XML attribute.

For example the following item is missing the required 'Version' attribute:

<ItemGroup>
  <AndroidMavenLibrary Include="com.example:mylib" />
</ItemGroup>

Solution

To resolve this error, ensure that the specified XML contains the specified attribute:

<ItemGroup>
  <AndroidMavenLibrary Include="com.example:mylib" Version="1.0.0" />
</ItemGroup>