显然,我有太多的apache,它们返回太多的方法,并且在尝试读取和编写xlsx文件时超出了限制。下面是我得到的错误
trouble writing output: Too many methods: 66024; max is 65536. By package:
13 java.lang
1 java.lang.reflect
5 java.util
1 javax.xml.namespace
66 org.apache.xmlbeans
19 org.apache.xmlbeans.impl.values
1 org.apache.xmlbeans.impl.xb.xmlschema
2500 org.openxmlformats.schemas.drawingml.x2006.chart
1430 org.openxmlformats.schemas.drawingml.x2006.chart.impl
8767 org.openxmlformats.schemas.drawingml.x2006.main
5258 org.openxmlformats.schemas.drawingml.x2006.main.impl
86 org.openxmlformats.schemas.drawingml.x2006.picture
33 org.openxmlformats.schemas.drawingml.x2006.picture.impl有办法绕道吗?我不想删除任何库,但我的项目没有编译。请帮帮忙。
发布于 2013-08-18 15:29:50
找到问题了!
这是Apache的XSSF不兼容Android!实际上,Apache很好,但是当Android将您的Java代码转换为文件时,它的方法限制为65536,而Apache的库在处理XSSF时超过了这个限制。因此出现了错误。这和线条无关。)我只有75行7列。有关这方面的更多信息,可以在=LfpdXqsDsnjJKR2X7Q@mail.gmail.com%3E上找到。
发布于 2016-01-23 08:53:50
简短答覆:
只需删除不必要的jar文件即可。例如,从您给出的列表中,我看到了来自org.openxmlformats.schemas.drawingml.x2006.main的'8767‘方法,如果没有必要,只需删除这个jar文件,您的生活就会更轻松。
详细答覆:
在钛合金官方网站Jira上,这个bug仍然是“重新打开”的,它是一年前创建的。我不认为他们明天会发布新版本。( https://jira.appcelerator.org/browse/TIMOB-18082 )
但是,删除不必要的jar文件将导致运行时错误,因为它们是不必要的,没有它们就不会发生运行时错误。
阅读评论,也请参考这里:ADT: fail to build when there are too many packages and classes
在这里:Can we create multi dex support builds in Titanium android?
https://stackoverflow.com/questions/18298937
复制相似问题