在pom.xml中添加AAR库时缺少工件com.XXX:jar:XXX

时间:2014-07-11 09:45:13

标签: android maven pom.xml

当添加一个库,即来自maven central的com.XXX:jar:XXX时,它显示了Missing artifact com.XXX:jar:XXX。

maven central中检出库,该特定库的下载部分没有.jar。

如何在pom.xml中添加AAR库?

1 个答案:

答案 0 :(得分:0)

答案参考:https://code.google.com/p/maven-android-plugin/wiki/AAR

在Maven pom.xml中添加AAR库。

<type>aar</type>代码

中添加<dependency>

例如:

  <dependency>
    <groupId>com.google.android.gms</groupId>
    <artifactId>play-services</artifactId>
    <version>4.4.52</version>
    <type>aar</type>
  </dependency>

注意:

如果需要采取任何其他信息/考虑因素,请添加此答案。谢谢。

相关问题