Hi,

Has anyone experienced OpenJDK crashes with:

java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.8) (6b20-1.9.8-0ubuntu1~10.04.1)
OpenJDK Server VM (build 19.0-b09, mixed mode)

On Ubuntu?

I am working on a BT project and once I add the libbluetooth.so lib I get
this crash  when forming the classes.dex -

classes.dex...
    [apply]
    [apply] UNEXPECTED TOP-LEVEL EXCEPTION:
    [apply] java.lang.IllegalArgumentException: already added:
Lorg/ccnx/ccn/BasicInterestListener;
    [apply]     at
com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
    [apply]     at com.android.dx.dex.file.DexFile.add(DexFile.java:143)
    [apply]     at
com.android.dx.command.dexer.Main.processClass(Main.java:372)
    [apply]     at
com.android.dx.command.dexer.Main.processFileBytes(Main.java:346)
    [apply]     at
com.android.dx.command.dexer.Main.access$400(Main.java:59)
    [apply]     at
com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:294)
    [apply]     at
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
    [apply]     at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
    [apply]     at
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
    [apply]     at
com.android.dx.command.dexer.Main.processOne(Main.java:313)
    [apply]     at
com.android.dx.command.dexer.Main.processAllFiles(Main.java:233)
    [apply]     at com.android.dx.command.dexer.Main.run(Main.java:185)
    [apply]     at com.android.dx.command.dexer.Main.main(Main.java:166)
    [apply]     at com.android.dx.command.Main.main(Main.java:90)
    [apply] 1 error; aborting

BUILD FAILED

The offending line (486 "dex-helper" ) in main_rules.xml is :


<!-- Converts this project's .class files into .dex files -->
    <target name="-dex" depends="compile, -post-compile, -obfuscate"
            unless="do.not.compile">
        <if condition="${manifest.hasCode}">
            <then>
                <dex-helper />
            </then>
            <else>
                <echo>hasCode = false. Skipping...</echo>
            </else>
        </if>
    </target>

<echo>Converting compiled files and external libraries into
${intermediate.dex.file}...</echo>
            <apply executable="${dx}" failonerror="true" parallel="true">
                <arg value="--dex" />
                <arg value="--output=${intermediate.dex.file}" />
                <extra-parameters />
                <arg line="${verbose.option}" />
                <arg path="${out.dex.input.absolute.dir}" />
                <path refid="out.dex.jar.input.ref" />
                <external-libs />
            </apply>


thanks

/mpd

-- 
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