0

在将 android 应用程序从 eclipse 安装到任何模拟器时,我开始收到错误:

04-17 00:36:53.043: E/dalvikvm(20216): Invalid name: ' enum constant initialization$2'
04-17 00:36:53.043: E/dalvikvm(20216): Trouble with item 10075 @ offset 0x611ec
04-17 00:36:53.043: E/dalvikvm(20216): Cross-item verify of section type 0005 failed
04-17 00:36:53.043: E/dalvikvm(20216): ERROR: Byte swap + verify failed
04-17 00:36:53.043: E/dalvikvm(20216): Optimization failed

我检查了我的枚举,但不确定可能是什么问题。在网上找不到足够相似的东西,所以在这里需要一些帮助:)

4

1 回答 1

0

It looks that problem was with size of one of my big enums. i split that enum in two and problem went away. It's pretty hard where is the problem becaus message don't say anything about concrete enum name where is the problem and what kind of problem is this. Just that Invalid name: 'enum constant initialization$2' crap.

于 2014-04-17T11:00:15.477 回答