且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

编译罐,并将其添加到Android项目

更新时间:2023-12-02 23:22:52

确定经过长期的研究,我认为,我知道是什么问题,但我不知道如何解决办法呢。

Ok after a long research, i think that i know what is the problem, however i don't know how to workaround it yet.

症状:编译大罐子和或几罐,造成偏食崩溃,当它不崩溃的错误消息:麻烦写输出:OP code == null,则转换为Dalvik的格式失败,错误2。

Symptoms : compiling large jar and or several jars, cause to eclipse to crash, when it doesn't crash error message : trouble writing output: opcode == null , Conversion to Dalvik format failed with error 2 .

原因:DX是无法处理多于它可以包含在16位的字符串,因此,就没有办法,包括(至少在平均时间)超过这个字符串的长度

Cause : DX is unable to process more than it can contain in a string of 16bit, thus, there is no way to include(at least not in the mean time) more than the length of this string.

结果:无法为Android复杂的应用程序编程为一个APK

Result : unable to program complicated apps for Android as one APK.

建议为Android开发者(我不太知道你如何构建它,但):您可以使用ArrayList中的这些字符串,而他们每个人自己写依次classes.dex文件,然后,就没有极限写作code一个APK,和/或添加尽可能多的罐子作为开发需求,这是一个假设,使得它不会是容易的,但不能太复杂,太,definitly不是那些谁做的Andr​​oid,同意?

Advice for android developers (i don't quite sure how you built it but): you can use arraylist for these strings, which each one of them writes itself in turn to classes.dex file, then, there will be no limit for writing code for one APK, and/or adding as many jars as the developer needs, this is an assumption, making it won't be easy but not too complicated too, definitly not to the ones who made Android, Agree ?

解决方法:抱歉,但我没有一个解决方法还没有,我花了一些时间来弄清楚这个问题,因为日食应声而我没有得到的OP code == NULL的错误信息所以我认为这是一个Eclipse的问题,我会很高兴拿到第二个和第三个观点就这一个。

Workaround : sorry but i don't have a workaround yet, it took me some time to figure this problem, because the eclipse crashed and i didn't get the "opcode == null", error message so i thought that this is an eclipse issue, I will be glad to get second and third opinion on this one.