I have a problem with Android libraries.
I would like use the method Hex.encodeHexString(Byte Array) from the library org.apache.commons.codec.binary.Hex (version 1.6)
On my Android platform (SDK 2.3.1), the commons-codec library version 1.3 already exist but the method doesn't exist yet in this version (only encodeHex() ).
I added the jar library of version 1.6 into my Eclipse project (into /libs directory) but when I run the project on Emulator, I get this :
E/AndroidRuntime(1632): FATAL EXCEPTION: main
E/AndroidRuntime(1632): java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString
How can I indicate the OS where is the good library?
I'm using Eclipse Juno with Java 1.6.0 on Mac OS X
Sorry for my bad english and thanks in advance!
EDIT : My problem could be apparently solved with jarjar tool.
http://code.google.com/p/google-http-java-client/issues/detail?id=75
Someone could help me with this tool? I don't know how to create an Ant Manifest or a jar file.
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…