添加库时,即com。XXX:jar:XXX来自maven central,它显示丢失的工件com.XXX:jar:XXX.
检查maven中心中的库,下载部分中特定库没有.jar。
如何添加AAR库在pom.xml?
答案引用自:https://code.google.com/p/maven-android-plugin/wiki/AAR
在Maven pom.xml中添加AAR库。
在<dependency>
标签中添加<type>aar</type>
E。G:
<dependency>
<groupId>com.google.android.gms</groupId>
<artifactId>play-services</artifactId>
<version>4.4.52</version>
<type>aar</type>
</dependency>
说明:
- 不要忘记在build/plugins部分添加android-maven-plugin您的maven项目
- Maven -android-plugin需要安装Maven 3.1.1+。查看
额外补贴在
https://code.google.com/p/maven-android-plugin/wiki/GettingStarted
如果有任何额外的信息/考虑因素等需要采取,请添加到这个答案。谢谢。