简体   繁体   English

您的项目包含错误,请在运行之前对其进行修复:Eclipse

[英]Your projects contains error please fix them before running:Eclipse

I am building android application in which I have imported one of the maven library from this link https://github.com/devnied/EMV-NFC-Paycard-Enrollment.My project name is Nfcs and I have no errors in the project and I have added all of the dependencies in my project successfully but when I run the project error window opens saying "Your projects contains error please fix them before running".Please help me find out the error... 我正在构建Android应用程序,其中我已从此链接https://github.com/devnied/EMV-NFC-Paycard-Enrollment导入了一个Maven库。我的项目名称为Nfcs,并且在该项目中没有错误,并且我已经在项目中成功添加了所有依赖项,但是当我运行项目时,错误窗口打开,显示“您的项目包含错误,请在运行前修复它们”。请帮助我找出错误... 在此处输入图片说明

在此处输入图片说明

pom.xml of the library project. 库项目的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>library</artifactId>
    <packaging>jar</packaging>
    <name>EMV paycard library</name>

    <parent>
        <groupId>com.github.devnied.emvnfccard</groupId>
        <artifactId>parent</artifactId>
        <version>1.1.1-SNAPSHOT</version>
    </parent>

    <dependencies>
        <dependency>
            <groupId>com.github.devnied</groupId>
            <artifactId>bit-lib4j</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-collections4</artifactId>
        </dependency>

        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>

        <!-- Unit test -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.easytesting</groupId>
            <artifactId>fest-assert</artifactId>
            <version>1.4</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-api-easymock</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>cglib</groupId>
            <artifactId>cglib</artifactId>
            <scope>test</scope>
        </dependency>

    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.eluder.coveralls</groupId>
                <artifactId>coveralls-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>


</project>

You error message says: 您的错误消息说:

... Run Maven->Update Project or Use Quick Fix.

As you see the error is on your Maven Project, you should follow the hint Eclipse is giving you! 如您所见,错误出在Maven项目上,则应遵循Eclipse给您的提示! And Right Click on your Maven Project > Maven > Update Project. 然后右键单击您的Maven项目> Maven>更新项目。

Usually, Eclipse hints are quite usefull. 通常,Eclipse提示非常有用。

Read this post to understand what this function is used for. 阅读这篇文章,以了解此功能的用途。 You have to keep in mind that Maven is not the 'native' build manager in Eclipse and therefore needs a little adaptation and additional operations in order for it to work properly. 您必须记住,Maven不是Eclipse中的“本机”构建管理器,因此需要进行一些改动和其他操作才能使其正常工作。

暂无
暂无

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

相关问题 运行`SolrTestCaseJ4`测试时出现断言错误:在lucene-core.jar之前修复你的类路径以获得tests-framework.jar - Assertion Error when running `SolrTestCaseJ4` tests: Fix your classpath to have tests-framework.jar before lucene-core.jar Android项目未在Eclipse中运行 - Android projects not running in eclipse 在Eclipse上运行动态Web项目会在Tomcat 7中引发404错误 - Running dynamic web projects on Eclipse brings up a 404 error in Tomcat 7 错误:发生了JNI错误,请检查您的安装,然后在Eclipse EE中的Maven Project中重试 - Error: A JNI error has occurred, please check your installation and try again in Maven Project in Eclipse EE 错误:发生 JNI 错误,请检查您的安装并重试。 使用 Eclipse,TestNG - Error: A JNI error has occurred, please check your installation and try again. Using Eclipse, TestNG 将Git存储库导入Linux Eclipse(3.8)并作为Java项目运行/编译 - Importing Git Repositories into Linux Eclipse (3.8) and Running/Compiling Them as Java Projects #error running igv **Error: A JNI error has occurred, please check your installation and try again - #error running igv **Error: A JNI error has occurred, please check your installation and try again 在Eclipse中生成项目时出错 - Error generating projects in Eclipse 如何修复“发生 JNI 错误,请检查您的安装。” - How to fix "A JNI error has occurred, please check your installation." JUnit在Eclipse中运行两个项目 - JUnit Running Two Projects In Eclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM