Android转换为Dalvik格式失败,错误

时间:2014-03-12 10:15:05

标签: android dalvik

我收到以下错误 - 不知道为什么?如果有人能解决这个问题,我将不胜感激。感谢

[2014-03-12 11:09:36 - mediasenseapp] Dx 
EXCEPTION FROM SIMULATION:
[2014-03-12 11:09:36 - mediasenseapp] Dx local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type java.lang.Object[]. This is symptomatic of .class transformation tools that ignore local variable information.

[2014-03-12 11:09:36 - mediasenseapp] Dx ...at bytecode offset 000000c7
locals[0000]: Lch/qos/logback/classic/gaffer/ComponentDelegate;
locals[0001]: [Ljava/lang/Object;
locals[0002]: [Lorg/codehaus/groovy/runtime/callsite/CallSite;
locals[0003]: Ljava/lang/String;
locals[0004]: Ljava/lang/Class;
locals[0005]: Lgroovy/lang/Closure;
locals[0006]: <invalid>
stack[top0]: Ljava/lang/Object;
...while working on block 00c6
...while working on method analyzeArgs:([Ljava/lang/Object;)Ljava/lang/Object;
...while processing analyzeArgs ([Ljava/lang/Object;)Ljava/lang/Object;
...while processing ch/qos/logback/classic/gaffer/ComponentDelegate.class

[2014-03-12 11:09:36 - mediasenseapp] Dx 1 error; aborting
[2014-03-12 11:09:36 - mediasenseapp] Conversion to Dalvik format failed with error 1

1 个答案:

答案 0 :(得分:0)

我之前吃了这个错误。但是阅读错误日志:Dx local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type java.lang.Object[]. This is symptomatic of .class transformation tools that ignore local variable information.,我认为问题在于你使用的是库。在以下日志中,我想您可以使用 groovy 来开发Android代码。然后使用 DX 转换代码。

据我所知,Android支持 java 6 版本,但这并不意味着它可以支持groovy或更高版本的java。

如果您可以提供更多信息,我可以重建您的演示。 : - )