我已经安装了一切,我正在使用eclipse luna ..我正在尝试运行这个项目“示例”但是到目前为止没有运气https://github.com/devnied/EMV-NFC-Paycard-Enrollment..I安装了所有内容并使用eclipse luna但是它给了我android v4兼容性错误..请帮帮我
[ERROR] Failed to execute goal on project sample: Could not resolve dependencies for project com.github.devnied.emvnfccard:sample:apk:1.1.1-SNAPSHOT: Failure to find android.support:compatibility-v4:jar:20.0.0 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 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
它的pom.xml是:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>sample</artifactId>
<packaging>apk</packaging>
<name>EMV NFC android paycard reader</name>
<parent>
<groupId>com.github.devnied.emvnfccard</groupId>
<artifactId>parent</artifactId>
<version>1.1.1-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>support-v4</artifactId>
<version>20.0.0-rc1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.github.devnied.emvnfccard</groupId>
<artifactId>library</artifactId>
<version>1.1.1-SNAPSHOT</version>
</dependency>
<dependency>
<artifactId>crouton</artifactId>
<groupId>de.keyboardsurfer.android.widget</groupId>
<version>1.8.5</version>
<exclusions>
<exclusion>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>my.company.name.packageName.TestMain</mainClass>
<arguments>
<argument>myArg1</argument>
<argument>myArg2</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
答案 0 :(得分:0)
使用已发布的版本代替SNAPSHOT:
<dependency>
<groupId>com.github.devnied.emvnfccard</groupId>
<artifactId>sample</artifactId>
<version>1.1.0</version>
</dependency>
或添加包含此库的SNAPSHOT版本的存储库(如果必须使用1.1.1-SNAPSHOT)