繁体   English   中英

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

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

我正在尝试使用MavenEclipse运行android应用程序。 不幸的是,某些dependencies导致运行停止(无法找到或解决)。 我已经检查过我的存储库中是否有依赖项。 任何建议都欢迎。 感谢您的时间和考虑。

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>

控制台的错误消息:

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

您的存储库中不存在android:android:jar:4.4.2_r2。 真的检查它是否存在。

由于法律问题,Google不允许在Maven Central存储库中安装Android JAR文件。 您需要在本地存储库中手动安装这些依赖项。

为此,您需要克隆并执行Maven Android SDK Deployer

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM