Java 在ooxml-schemas-1.4.jar和poishadow-all.jar中使用Apache poi重复错误时

Java 在ooxml-schemas-1.4.jar和poishadow-all.jar中使用Apache poi重复错误时,java,android,apache-poi,Java,Android,Apache Poi,我正在处理ApachePOI,我添加了两个.jar文件1。poisshadow-all.jar(重新打包了所有ApachePOIjar)和ooxml-schemas-1.4.jar,然后我得到了大量重复错误 Include .jar present in src/libs implementation files('libs\\poishadow-all.jar') implementation files('libs\\ooxml-schemas-1.4.jar') 您可以通过将这两个.ja

我正在处理ApachePOI,我添加了两个.jar文件1。poisshadow-all.jar(重新打包了所有ApachePOIjar)和ooxml-schemas-1.4.jar,然后我得到了大量重复错误

Include .jar present in src/libs
implementation files('libs\\poishadow-all.jar')
implementation files('libs\\ooxml-schemas-1.4.jar')

您可以通过将这两个.jar文件放在一个文件中来解决这个双重性错误


这是一个很好的视频,
poi ooxml schemas-*.jar
是从
ooxml schemas-*.jar
中摘录的类。
poi ooxml schemas-*.jar
中的所有类也包含在
ooxml schemas-*.jar
中。所以,如果你想使用
ooxml模式-*.jar
那么在你的fat
jar
中使用所有类的
poi ooxml模式-*.jar
。先生,我怎么才能在Android中排除poi ooxml模式-*.jar呢
Duplicate class com.microsoft.schemas.office.excel.CTClientData found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class com.microsoft.schemas.office.excel.CTClientData$Factory found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class com.microsoft.schemas.office.excel.STCF$Enum found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class com.microsoft.schemas.office.excel.STObjectType found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class com.microsoft.schemas.office.excel.STObjectType$Enum found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class com.microsoft.schemas.office.excel.STObjectType$Factory found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class com.microsoft.schemas.office.excel.STTrueFalseBlank found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class com.microsoft.schemas.office.excel.STTrueFalseBlank$Enum found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class com.microsoft.schemas.office.excel.STTrueFalseBlank$Factory found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Du

Duplicate class org.openxmlformats.schemas.drawingml.x2006.chart.CTDouble$Factory found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class org.openxmlformats.schemas.drawingml.x2006.chart.CTHeaderFooter found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class org.openxmlformats.schemas.drawingml.x2006.chart.CTHeaderFooter$Factory found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class org.openxmlformats.schemas.drawingml.x2006.chart.CTLayout found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class org.openxmlformats.schemas.drawingml.x2006.chart.CTLayout$Factory found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class org.openxmlformats.schemas.drawingml.x2006.chart.CTLayoutMode found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class org.openxmlformats.schemas.drawingml.x2006.chart.CTLayoutMode$Factory found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class org.openxmlformats.schemas.drawingml.x2006.chart.CTLayoutTarget found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Duplicate class org.openxmlformats.schemas.drawingml.x2006.chart.CTLayoutTarget$Factory found in modules ooxml-schemas-1.4.jar (ooxml-schemas-1.4.jar) and poishadow-all.jar (poishadow-all.jar)
Du 
...............