Note that there are some explanatory texts on larger screens.

plurals
  1. POdx fails with RoboGuice
    primarykey
    data
    text
    <p>I'm trying to package an Android app which uses RoboGuice. The .class files compile fine, but when building the Android package, dx fails with a "No expanded opcode" message.</p> <p>Running <code>dx --dex --debug --verbose target/android-classes</code> produces:</p> <pre><code>trouble writing output: com.android.dx.util.DexException: No expanded opcode for 6c80c7f5 Key.java:371@0003: invoke-virtual v0:[Lcom/google/inject/Key$NullAnnotationStrategy;, com.google.inject.Key$NullAnnotationStrategy[].clone:()Ljava/lang/Object; at com.android.dx.dex.code.OutputFinisher.findExpandedOpcodeForInsn(OutputFinisher.java:526) at com.android.dx.dex.code.OutputFinisher.calculateReservedCount(OutputFinisher.java:467) at com.android.dx.dex.code.OutputFinisher.reserveRegisters(OutputFinisher.java:403) at com.android.dx.dex.code.OutputFinisher.finishProcessingAndGetList(OutputFinisher.java:359) at com.android.dx.dex.code.DalvCode.finishProcessingIfNecessary(DalvCode.java:108) at com.android.dx.dex.code.DalvCode.getInsns(DalvCode.java:185) at com.android.dx.dex.file.CodeItem.place0(CodeItem.java:223) at com.android.dx.dex.file.OffsettedItem.place(OffsettedItem.java:242) at com.android.dx.dex.file.MixedItemSection.placeItems(MixedItemSection.java:312) at com.android.dx.dex.file.DexFile.toDex0(DexFile.java:543) at com.android.dx.dex.file.DexFile.toDex(DexFile.java:216) at com.android.dx.command.dexer.Main.writeDex(Main.java:574) at com.android.dx.command.dexer.Main.run(Main.java:218) at com.android.dx.command.dexer.Main.main(Main.java:174) at com.android.dx.command.Main.main(Main.java:95) ...while placing CodeItem{com.google.inject.Key$NullAnnotationStrategy.values:()[Lcom/google/inject/Key$NullAnnotationStrategy;} ...while writing section 7 </code></pre> <p>This occurs with RoboGuice 1.1.2 (Guice 2) and RoboGuice 2.0b3 (Guice 3).</p> <p>In Googling around, I found <a href="https://stackoverflow.com/questions/8805713/conversion-to-dalvik-format-failed-with-error-2-adt-16-0-1">this previous question on Stack Overflow</a> which seemed to be a configuration error, but I don't think that's the problem I'm experiencing... help!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload