Udostępnij przez


.NET for Android error XA4249

Przykładowy komunikat

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

Problematyka

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>

Rozwiązanie

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>