Мой внешний SDK .jar дублируется с json -простым (если я его не реализовал). Как мне это решить? - PullRequest
0 голосов
/ 09 апреля 2020

В последнее время я импортирую некоторые внешние SDK .jar. Когда я хочу запустить его, я не могу. Это выглядит так:

Duplicate class org.json.simple.ItemList found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.JSONArray found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.JSONAware found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.JSONObject found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.JSONStreamAware found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.JSONValue found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.parser.ContainerFactory found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.parser.ContentHandler found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.parser.JSONParser found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.parser.ParseException found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.parser.Yylex found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)
Duplicate class org.json.simple.parser.Yytoken found in modules --.jar (--.jar) and jetified-json-simple-1.1.jar (com.googlecode.json-simple:json-simple:1.1)

Go to the documentation to learn how to Fix dependency resolution errors.

Я пытался исключить его из .jar на Gradle, но он показывает другую ошибку (возможно, я делаю это неправильно).

Как мне решить этот вид проблема? Спасибо.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...