2012-02-28 4 views
1

RoboGuiceを使用するAndroidアプリをパッケージ化しようとしています。 .classファイルはうまくコンパイルされますが、Androidパッケージをビルドすると、dxは "拡張オペコードなし"というメッセージで失敗します。 dx --dex --debug --verbose target/android-classes実行dxがRoboGuiceで失敗する

が生成:

trouble writing output: 
com.android.dx.util.DexException: No expanded opcode for 6c80c7f5 Key.java:[email protected]: 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 

これはRoboGuice 1.1.2(Guiceの2)とRoboGuiceの2.0b3(Guiceの3)で起こります。

Googleで検索すると、構成エラーと思われるthis previous question on Stack Overflowが見つかりましたが、それは私が経験している問題だとは思わない...ヘルプ!

答えて

0

dxコードを書き換えて、拡張オペコードをサポートできるようにします。私の答えがあなたを助けることができれば幸いです。

関連する問題