gpt4 book ai didi

java - 使用 Apache poi 时,ooxml-schemas-1.4.jar 和 poishadow-all.jar 中出现重复错误

转载 作者:行者123 更新时间:2023-12-02 00:45:44 25 4
gpt4 key购买 nike

我正在 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
...............

最佳答案

您可以通过将这两个 .jar 文件合并为一个来解决此重复错误

这是执行此操作的精彩视频 https://www.youtube.com/watch?v=BsndjGOc1w4

关于java - 使用 Apache poi 时,ooxml-schemas-1.4.jar 和 poishadow-all.jar 中出现重复错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57899560/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com