POI:重复项:组织/阿帕奇/的XMLBeans / XML /流/ BindigConfig.class [英] POI : duplicate entry: org/apache/xmlbeans/xml/stream/BindigConfig.class

查看:668
本文介绍了POI:重复项:组织/阿帕奇/的XMLBeans / XML /流/ BindigConfig.class的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题,使用更新兴趣点的Andr​​oid阅读XLSX文件。在我的gradle这个我有:

I am having problems to use Poi to read xlsx files in Android. In my gradle I have:


      
  • 编译文件树(导演:'库',包括:的* .jar')

  •   
  • 编译org.apache.poi:POI:3.14

  •   
  • 编译org.apache.poi:POI-OOXML:3.14

  •   

在libs文件夹我有的XMLBeans-2.6.0.jar 。 previously我有问题,重复的条目:

In libs folder I have xmlbeans-2.6.0.jar. Previously I had the problem duplicate entry:

组织/阿帕奇/的XMLBeans / XML /流/ Location.class

org/apache/xmlbeans/xml/stream/Location.class

但我得到 https://issues.apache.org/jira/解决浏览/ XMLBeans的-499

现在,我收到错误重复的条目:

Now, I am getting the error duplicate entry:

组织/阿帕奇/的XMLBeans / XML /流/ BindigConfig.class

org/apache/xmlbeans/xml/stream/BindigConfig.class

有人可以帮我吗?

推荐答案

这是由XMLBeans的-jar文件的发布版本复制类文件引起的。普通的JDK优雅地处理这个问题,只有Android的编译器失败就可以了。

This is caused by duplicated class-files in the released version of the xmlbeans-jar file. Normal JDKs handle this gracefully, only the Android compiler fails on it.

有是它试图在 https://github.com/andruhon/android5xlsx

也有是在Apache的POI讨论解决在 HTTPS XMLBeans的罐子:/ /bz.apache.org/bugzilla/show_bug.cgi?id=59268 (虽然它实际上是一个独立的退休ASF项目)。

Also there is discussion in Apache POI to fix the XMLBeans jar at https://bz.apache.org/bugzilla/show_bug.cgi?id=59268 (although it is actually a separate retired ASF-project).

这篇关于POI:重复项:组织/阿帕奇/的XMLBeans / XML /流/ BindigConfig.class的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆