Tuesday, October 27, 2009

[android-developers] Sucky error: java.lang.IllegalArgumentException: already added: Lnet/ponder2/Util;

I am using the Eclipse plugin and I have the above error. I know why
it is occurring, it is because I want to override a class file in one
of my imported jar files. I am including a new Util class before the
jar file in question. I have tried it both as a simple .class file in
my package hierarchy and I have tried putting it into another jar file
and including it before the one to be overridden.

I would like it to behave like the Java classpath and use the first
one it comes to when running through all the classes. I don't mind if
dex wants to give me a warning that it is not using the second
Util.class file but it should let me build my application. To build
my app, I have to create a special jar file without the old Util.class
in it. This is annoying as I would like to use the bog standard
version so that others can use it with ease too.

Has anyone been worried about this, has anyone had a go at fixing it?

Cheers

Kevin

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment