Josh,

What jar you added? Take care of the classes in the external jar? Is
it a third party external jar or your own?

Thanks,
Guna

On Nov 8, 4:19 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hey guys,
>
> alittle more info,
>
> I do not have the jar loaded twice or have multiples of the same
> classes.
> I am using the HelloAndroid sample to try to load a jar so the only
> classes I have is the HelloAndroid and the R class.
> Even after i unload the jar and re-load it, I still get the error.
>
> Thanks,
>
> Josh
>
> On Nov 7, 2:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Hey guys,
>
> > I'm adding an external jar to my project through eclipse.
> > However, I am encountering an error:
>
> > java.lang.IllegalArgumentException: already added: Lcom/package/class;
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:
> > 123)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.dex.file.DexFile.add(DexFile.java:143)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.command.dexer.Main.processClass(Main.java:299)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.command.dexer.Main.access$100(Main.java:56)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:
> > 245)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
> > 130)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
> > 108)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.command.dexer.Main.processOne(Main.java:245)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.dx.command.dexer.Main.run(Main.java:139)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > 39)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> > 25)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > java.lang.reflect.Method.invoke(Method.java:585)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.ide.eclipse.adt.build.DexWrapper.run(Unknown Source)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.ide.eclipse.adt.build.ApkBuilder.executeDx(Unknown Source)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > com.android.ide.eclipse.adt.build.ApkBuilder.build(Unknown Source)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
> > 624)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> > 166)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> > 197)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:
> > 246)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> > 249)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:
> > 302)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
> > 334)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
> > 137)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
> > 235)
> > [2008-11-07 14:34:59 - HelloAndroid]    at
> > org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> > [2008-11-07 14:34:59 - HelloAndroid] 1 error; aborting
> > [2008-11-07 14:34:59 - HelloAndroid] Conversion to Dalvik format
> > failed with error 1
>
> > I was looking through some posts and they said that android doesn't
> > like annotations and generics so I got rid of them but the jar still
> > won't load properly.
>
> > Any help would be appreciated.
>
> > Regards,
>
> > Josh
--~--~---------~--~----~------------~-------~--~----~
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