Found multiple occurrences of org.json.JSONObject on the class path:

Posted niaomingjian

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Found multiple occurrences of org.json.JSONObject on the class path:相关的知识,希望对你有一定的参考价值。

Question:

Found multiple occurrences of org.json.JSONObject on the class path:

jar:file:/C:/Users/nmj/.m2/repository/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar!/org/json/JSONObject.class
jar:file:/C:/Users/nmj/.m2/repository/org/json/json/20160810/json-20160810.jar!/org/json/JSONObject.class

You may wish to exclude one of them to ensure predictable runtime behavior

Analysis:

1.

https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-starters/spring-boot-starter-test/pom.xml

        <dependency>
            <groupId>org.skyscreamer</groupId>
            <artifactId>jsonassert</artifactId>
        </dependency>

android-json-0.0.20131108.vaadin1

2.

    <dependency>
      <groupId>org.json</groupId>
      <artifactId>json</artifactId>
      <version>20160810</version>
    </dependency>

 


以上是关于Found multiple occurrences of org.json.JSONObject on the class path:的主要内容,如果未能解决你的问题,请参考以下文章

/WEB-INF/pages/common/head.jsp (line: 1, column: 2) Page directive: illegal to have multiple occurre

/WEB-INF/pages/common/head.jsp (line: 1, column: 2) Page directive: illegal to have multiple occurre

解决eclipse Multiple annotations found at this line 错误

Multiple annotations found at this line:——解决方法

eclipse新建JSP页面报错:Multiple annotations found at this line解决方法

maven的pom.xml中出现Multiple annotations found at this line:错误