Passing params to dex?

22 views
Skip to first unread message

William Ferguson

unread,
May 5, 2013, 3:17:56 PM5/5/13
to maven-androi...@googlegroups.com
Is there a way to get the plugin to pass params to dex?

In particular I was hoping to turn debug on for dex (ie --debug) in an attempt to find out why it always fails on a non-clean build now with

[INFO] UNEXPECTED TOP-LEVEL EXCEPTION:
[INFO] java.lang.IllegalArgumentException: already added: Lcom/fasterxml/jackson/core/base/GeneratorBase$1;
[INFO] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)


It's made my build cycle really long to have to clean each time (I have 3 apklib includes thanks to HoloEverywhere + one of my one, so 4 separate aapt calls - it'd be nice if those were skipped if they had already been run).

So is there any way to turn on debug output for dex?
Or perhaps someone has an insight into why a non-clean build always fails with the above?

William

William Ferguson

unread,
May 7, 2013, 7:20:52 PM5/7/13
to maven-androi...@googlegroups.com
I take it the answer to this is no then?

Manfred Moser

unread,
May 7, 2013, 11:18:22 PM5/7/13
to maven-androi...@googlegroups.com, William Ferguson
I have not found the time to check.. Probably best to see in the morning plugin source code..



William Ferguson <william....@xandar.com.au> wrote:
I take it the answer to this is no then?

On Monday, May 6, 2013 5:17:56 AM UTC+10, William Ferguson wrote:
Is there a way to get the plugin to pass params to dex?

In particular I was hoping to turn debug on for dex (ie --debug) in an attempt to find out why it always fails on a non-clean build now with

[INFO] UNEXPECTED TOP-LEVEL EXCEPTION:
[INFO] java.lang.IllegalArgumentException: already added: Lcom/fasterxml/jackson/core/base/GeneratorBase$1;
[INFO] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)


It's made my build cycle really long to have to clean each time (I have 3 apklib includes thanks to HoloEverywhere + one of my one, so 4 sepa! rate aapt calls - it'd be nice if those were skipped if they had already been run).

So is there any way to turn on debug output for dex?
Or perhaps someone has an insight into why a non-clean build always fails with the above?

William


--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Reply all
Reply to author
Forward
0 new messages