我在我的Android
应用程序中收到警告,说我的bytecode makes illegal references to java.awt
,在某些情况下是runtime seems to replace invalid opcodes
.
09-22 19:36:41.688: W/dalvikvm(831): VFY: unable to find class referenced in signature (Ljava/awt/Component;)
09-22 19:36:41.688: W/dalvikvm(831): VFY: unable to resolve virtual method 523: Ljava/awt/Component;.isLightweight ()Z
09-22 19:36:41.688: D/dalvikvm(831): VFY: replacing opcode 0x6e at 0x0000
我可以做些什么来告诉DX
工具更早地清除或替换这些引用(比如在编译时),以便生成的 dex 文件不再有这些引用?