> Although that solution will work for most developers, it will not work
> if you need to propagate this fix across all team members working on
> the project.  As an alternative, you can fix it in your own project's
> build file (build.xml) by ensuring that the external .jar files are
> included in the input directory.  You can do this by copying the .jar
> files to the dex input directory before the dex target is called:
>
I posted too quickly... the more appropriate thing to do is to copy
the external library jars ONLY when ProGuard is disabled, otherwise
you'll get two copies of the class files in the resulting package.
    <target name="-pre-compile">

        <!-- To fix a bug in Android SDK Tools v8, we need to copy the
external
             libraries to the binary output directory, so that the .jar
is
             included by the DX compiler. -->
        <if condition="${proguard.enabled}">
        <then>
                <echo message="Not copying external .JAR files because
ProGuard is enabled."/>
        </then>
        <else>
                <echo message="Copying external .JAR files because ProGuard
is not enabled."/>
                        <copy todir="${out.classes.absolute.dir}">
                                <fileset dir="${jar.libs.absolute.dir}"/>
                        </copy>
                </else>
                </if>
        </target>

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

Reply via email to