简体   繁体   English

将罐子分成多个dex文件

[英]splitting jars into multiple dex files

I am working with the Apache POI jars and since they have more than 65000 methods, they do not compile and I get the error: 我正在使用Apache POI jar,由于它们有65000多个方法,它们无法编译,并且出现错误:

trouble writing output: Too many methods: 65561; 编写输出时遇到麻烦:方法太多:65561; max is 65536. By package:... 最大为65536。

I followed this tutorial, but I didn't understand how exactly it would work on the jars and split them as I still get the same error when I run build.xml 我按照教程进行操作,但是我不了解它在罐子上的工作原理以及将它们拆分的原因,因为在运行build.xml时仍然出现相同的错误
Could someone please tell me how I can split the jars into multiple dex files? 有人可以告诉我如何将罐子分成多个dex文件吗?

For POI only it could be enough to include the line dex.force.jumbo=true in project.properties. 仅对于POI,在project.properties中包含行dex.force.jumbo = true就足够了。

It worked for me until I added Drive SDK. 在添加Drive SDK之前,它一直对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM