I am facing the same issue. I have found a solution to this problem, but it is a little tricky so let's call it a workaround.
What I've done is so far is download and recompile dx sources with the variable "core library" hard-coded as true. You can change it in the method com.android.dx.command.dexer.Main#processClass, commenting the call to the method "checkClassName" (not the most elegant hack :). Then just replace the file "dx.jar" in $ANDROIDSDK$/platforms/ android-1.5/tools/lib with the new one. The source can be downloaded from http://android.git.kernel.org/?p=platform/dalvik.git ("snapshot" link to download a tar.gz) and there is only need to compile sources under dalvik/dx. I personally used this snapshot, that is not the latest one: http://android.git.kernel.org/?p=platform/dalvik.git;a=snapshot;h=8fbe0f8db412961fa412cc1387d55deab5a8206c;sf=tgz The compilation process was straightforward, it gave no problem at all, but this ugly hack seems to me hard to mantain, so I will be happy to hear about better alternatives. Thank you, Guido On 15 jun, 13:59, Jakob Sachse <[email protected]> wrote: > Hello, > > I want to pass the build process the --core-libary option. But in ADT > I don't see such an option. So in Version 1.1 --core-library could be > inserted into the build.xml and build was successfull when using ant. > It looked like this: > > ------- > <target name="dex" depends="compile"> > <echo>Converting compiled files and external libraries into $ > {outdir}/${dex-file}...</echo> > <apply executable="${dx}" failonerror="true" parallel="true"> > <arg value="--dex" /> > <arg value="--core-library" /> > <arg value="--output=${intermediate-dex-ospath}" /> > <arg path="${outdir-classes-ospath}" /> > <fileset dir="${external-libs}" includes="*.jar"/> > </apply> > </target> > ------- > > In 1.5 build.xml as well as the hole build process was heavitly > altered. Now even the dx.jar is gone. The build.xml works differently, > and I dont see where to put --core-library. There is also no > documentation for where to put it. > > Can anyone give me a hind? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

