Edit

Share via


.NET for Android error XA4235

Example message

error XA4235: Maven artifact specification 'com.example' is invalid. The correct format is 'group_id:artifact_id'.

Issue

The specified Maven artifact specification is invalid.

For example the following item uses a comma separator instead of a colon:

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

Solution

To resolve this error, ensure that the artifact specification is of the form 'group_id:artifact_id':

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