Java 重复类org.apache.commons.logging
重复类。如何解决这个问题?构建失败,谢谢Java 重复类org.apache.commons.logging,java,android,spring,Java,Android,Spring,重复类。如何解决这个问题?构建失败,谢谢 implementation 'org.springframework:spring-web:5.1.9.RELEASE' implementation 'org.springframework:spring-context:5.1.9.RELEASE' implementation 'org.apache.httpcomponents:httpclient:4.5.9' 在模块中找到重复的类org.apache.commons.logging.Log
implementation 'org.springframework:spring-web:5.1.9.RELEASE'
implementation 'org.springframework:spring-context:5.1.9.RELEASE'
implementation 'org.apache.httpcomponents:httpclient:4.5.9'
在模块中找到重复的类org.apache.commons.logging.Log
commons-logging-1.2.jar(commons-logging:commons-logging:1.2)和
spring-jcl-5.1.9.RELEASE.jar
(org.springframework:springjcl:5.1.9.RELEASE)重复类
在模块中找到org.apache.commons.logging.LogFactory
commons-logging-1.2.jar(commons-logging:commons-logging:1.2)和
spring-jcl-5.1.9.RELEASE.jar
(org.springframework:springjcl:5.1.9.RELEASE)重复类
在模块中找到org.apache.commons.logging.LogFactory$1
commons-logging-1.2.jar(commons-logging:commons-logging:1.2)和
spring-jcl-5.1.9.RELEASE.jar
(org.springframework:springjcl:5.1.9.RELEASE)重复类
在模块中找到org.apache.commons.logging.impl.NoOpLog
commons-logging-1.2.jar(commons-logging:commons-logging:1.2)和
spring-jcl-5.1.9.RELEASE.jar
(org.springframework:springjcl:5.1.9.RELEASE)重复类
在模块中找到org.apache.commons.logging.impl.SimpleLog
commons-logging-1.2.jar(commons-logging:commons-logging:1.2)和
spring-jcl-5.1.9.RELEASE.jar
(org.springframework:springjcl:5.1.9.RELEASE)
依赖项中两个包中的类文件是重复的,请删除其中一个以解决此问题。您可以将一个.jar重命名为.zip以删除.class文件
依赖项中两个包中的类文件是重复的,请删除其中一个以解决此问题。您可以将一个.jar重命名为.zip以删除.class文件您可以从另一个依赖项中排除某些依赖项。看看:您可以从另一个依赖项中排除某些依赖项。看看:
Duplicate class org.apache.commons.logging.LogFactory found in modules jetified-commons-logging-1.2.jar (commons-logging:commons-logging:1.2) and jetified-spring-jcl-5.1.8.RELEASE.jar (org.springframework:spring-jcl:5.1.8.RELEASE)
Duplicate class org.apache.commons.logging.LogFactory$1 found in modules jetified-commons-logging-1.2.jar (commons-logging:commons-logging:1.2) and jetified-spring-jcl-5.1.8.RELEASE.jar (org.springframework:spring-jcl:5.1.8.RELEASE)
Duplicate class org.apache.commons.logging.impl.NoOpLog found in modules jetified-commons-logging-1.2.jar (commons-logging:commons-logging:1.2) and jetified-spring-jcl-5.1.8.RELEASE.jar (org.springframework:spring-jcl:5.1.8.RELEASE)
Duplicate class org.apache.commons.logging.impl.SimpleLog found in modules jetified-commons-logging-1.2.jar (commons-logging:commons-logging:1.2) and jetified-spring-jcl-5.1.8.RELEASE.jar (org.springframework:spring-jcl:5.1.8.RELEASE)