ArtifactTransferException:无法传输com.google.android:android:jar:4.1.1.4

时间:2013-08-21 08:18:26

标签: android eclipse maven

我正在尝试使用maven和eclipse构建一个新的Android项目,在maven构建我的工作区后我在pom.xml中收到此错误:

  

ArtifactTransferException: Failure to transfer com.google.android:android:jar:4.1.1.4 from 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. Original error: Could not transfer artifact com.google.android:android:jar:4.1.1.4 from/to central (http:// repo.maven.apache.org/maven2): No response received after 60000

此错误指的是pom.xml的这些行:

        <dependency>
        <groupId>com.google.android</groupId>
        <artifactId>android</artifactId>
        <version>${platform.version}</version>
        <scope>provided</scope>
    </dependency>

有一句话here,我认为这是关于这个问题,但是这个链接让我无处可去。

任何帮助都会被贬低。

===&gt;编辑&LT; ===

我设法通过编辑pom.xml来解决问题:

                <configuration>
                <sdk>
                    <platform>16</platform>
                </sdk>
            </configuration>

我将平台更改为18然后执行了clean install并完成了诀窍。 我还编辑了AndroidManifest.xml和project.properties并做了同样的事情。

我希望这有帮助。

0 个答案:

没有答案