On Aug 2, 11:02 am, "Mark Murphy" <[email protected]> wrote:
> Try adding --debug to your command line.
> If you add --debug, dx should dump the exception that caused the failure
> message to "DxConsole.err", which I hope in your case is stderr, so you
> see it on your console.
Excellent. That did provide more information, namely:
...[Long dx transcript without error]...
...[then]...
processing ././resources.ap_...
trouble writing output:
com.android.dx.util.ExceptionWithContext: shouldn't happen
at com.android.dx.util.ExceptionWithContext.withContext
(ExceptionWithContext.java:46)
at com.android.dx.dex.file.DebugInfoItem.place0(DebugInfoItem.java:
79)
at com.android.dx.dex.file.OffsettedItem.place(OffsettedItem.java:
241)
at com.android.dx.dex.file.MixedItemSection.placeItems
(MixedItemSection.java:312)
at com.android.dx.dex.file.DexFile.toDex0(DexFile.java:525)
at com.android.dx.dex.file.DexFile.toDex(DexFile.java:196)
at com.android.dx.command.dexer.Main.writeDex(Main.java:406)
at com.android.dx.command.dexer.Main.run(Main.java:143)
at com.android.dx.command.dexer.Main.main(Main.java:120)
at com.android.dx.command.Main.main(Main.java:87)
Caused by: java.lang.RuntimeException: shouldn't happen
at com.android.dx.dex.file.DebugInfoEncoder.emitLocalsAtAddress
(DebugInfoEncoder.java:314)
at com.android.dx.dex.file.DebugInfoEncoder.convert0
(DebugInfoEncoder.java:220)
at com.android.dx.dex.file.DebugInfoEncoder.convert
(DebugInfoEncoder.java:155)
at com.android.dx.dex.file.DebugInfoItem.encode0(DebugInfoItem.java:
188)
at com.android.dx.dex.file.DebugInfoItem.encode(DebugInfoItem.java:
144)
at com.android.dx.dex.file.DebugInfoItem.place0(DebugInfoItem.java:
76)
... 8 more
...while placing debug info for
androidjxlsrc.jxl.write.biff.NumberFormatRecord.trimInvalidChars:
(Ljava/lang/String;)Ljava/lang/String;
...while placing com.android.dx.dex.file.debuginfoi...@eb4dab
...while writing section 10
[End transcript]
So, one could presume that there is *some* sort of problem with the
method androidjxlsrc.jxl.write.biff.NumberFormatRecord.trimInvalidChars
(String). I am studying the code -- at first glance it seems pretty
innocuous -- but what else can be gleaned from the debug output?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---