[英]“The following artifacts could not be resolved” : Maven / Android / Eclipse
I am trying to run an android
application in Eclipse
using Maven
. 我正在尝试使用
Maven
在Eclipse
运行android
应用程序。 Some dependencies
are unfortunately stopping the run (could not be found or resolved). 不幸的是,某些
dependencies
导致运行停止(无法找到或解决)。 I have already checked that I have the dependencies in my repository. 我已经检查过我的存储库中是否有依赖项。 Any suggestion is welcome.
任何建议都欢迎。 Thank you for your time and consideration.
感谢您的时间和考虑。
Pom.xml : Pom.xml:
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>4.4.2_r2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>android.support</groupId>
<artifactId>compatibility-v4</artifactId>
<version>19.0.1</version>
</dependency>
Console's error message: 控制台的错误消息:
The following artifacts could not be resolved: android:android:jar:4.4.2_r2, android.support:compatibility-v4:jar:19.0.1: Failure to find android:android:jar:4.4.2_r2 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
The android:android:jar:4.4.2_r2 does not exist in your repository. 您的存储库中不存在android:android:jar:4.4.2_r2。 Check really if it exists.
真的检查它是否存在。
Due to legal problems, Google do not allow Android JAR files to be installed on the Maven Central repository. 由于法律问题,Google不允许在Maven Central存储库中安装Android JAR文件。 You need to manually install these dependencies in your local repository.
您需要在本地存储库中手动安装这些依赖项。
To do this you need to clone and execute the Maven Android SDK Deployer . 为此,您需要克隆并执行Maven Android SDK Deployer 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.