简体   繁体   English

“以下工件无法解决”:Maven / Android / Eclipse

[英]“The following artifacts could not be resolved” : Maven / Android / Eclipse

I am trying to run an android application in Eclipse using Maven . 我正在尝试使用MavenEclipse运行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.

相关问题 创建Eclipse Maven项目时无法解决工件错误 - artifacts could not be resolved error while creating Eclipse Maven project 当以下工件虽然位于Maven缓存中却无法解决时,这在Maven中意味着什么? - What does it mean in Maven when it says the following artifacts could not be resolved although they are in Maven cache? Maven pom.xml缺少依赖项错误:无法解决工件 - Maven pom.xml missing dependency error: artifacts could not be resolved com.itextpdf:book:war:5.3.1-SNAPSHOT:无法解决以下工件: - com.itextpdf:book:war:5.3.1-SNAPSHOT: The following artifacts could not be resolved: 以下工件无法解析:org.apache.hbase:hbase:jar:0.96.1.1-hadoop2 - The following artifacts could not be resolved: org.apache.hbase:hbase:jar:0.96.1.1-hadoop2 无法解析以下工件:external.gearman.service:gearman:jar:0.6.6 - The following artifacts could not be resolved: external.gearman.service:gearman:jar:0.6.6 Maven依赖关系无法解决 - maven dependencies could not be resolved 无法解决以下工件:javax.sql:jdbc-stdext:jar:2.0,javax.transaction:jta:jar:1.0.1B: - The following artifacts could not be resolved: javax.sql:jdbc-stdext:jar:2.0, javax.transaction:jta:jar:1.0.1B: 运行Fortify Maven插件时收到警告“无法解析以下对Java符号的引用。” - Getting warning “The following references to java symbols could not be resolved.” when running Fortify maven plugin Maven构建失败-无法解决Maven依赖关系 - maven build failure - maven dependencies could not be resolved
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM