Edit

Share via


.NET for Android error XA4249

Example message

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

Issue

The specified Maven artifact specification is invalid.

For example the following item is missing the version:

<ItemGroup>
  <AndroidLibrary Include="mydependency.jar" JavaArtifact="my.library:dependency-library" />
</ItemGroup>

Solution

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

<ItemGroup>
  <AndroidLibrary Include="mydependency.jar" JavaArtifact="my.library:dependency-library:1.0.0" />
</ItemGroup>