On Sep 28, 11:29 am, fadden <fad...@android.com> wrote:
> From where is that exception being thrown?  Can you include more of
> the stack trace?

Ah, found the message in dalvik/dx/src/com/android/dx/dex/file/
ClassDefsSection.java.  Comment there says:

    /**
     * Adds an element to this instance. It is illegal to attempt to
add more
     * than one class with the same name.
     *
     * @param clazz {...@code non-null;} the class def to add
     */

The "dx" command wants to take your various classes and combine them
into a single, large .dex file.  It wouldn't make sense to have more
than one copy of the same class -- one would never be used and would
just take up space.

Assuming you need parts of all of the involved jar files, you can
probably work around this by unzipping the jars into a single
directory (which will allow "unzip" to overwrite or skip redundant
entries as you prefer) and then create a new jar from that directory
hierarchy.  I don't know if this is appropriate for your situation.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to