我正在处理apache poi,我添加了两个.jar文件1. poishadow-all.jar(重新包装了所有apache poi jar)和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')
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
...............
答案 0 :(得分:0)
您可以通过将这两个.jar文件边缘化为一个来解决此重复性错误
的绝佳视频