У меня проблема с библиотеками Android.
Я хотел бы использовать метод Hex.encodeHexString(байт-массив) из библиотеки org.apache.commons.codec.binary.Hex(версия 1.6)
На моей платформе Android (SDK 2.3.1) библиотека общедоступных кодеков версии 1.3 уже существует, но этот метод еще не существует в этой версии (только encodeHex()).
Я добавил библиотеку jar версии 1.6 в проект Eclipse (в каталог /libs ), но когда я запускаю проект на эмуляторе, я получаю следующее:
E/AndroidRuntime(1632): FATAL EXCEPTION: main
E/AndroidRuntime(1632): java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString
Как я могу указать ОС, где находится хорошая библиотека?
Я использую Eclipse Juno с Java 1.6.0 на Mac OS X
Извините за мой плохой английский и спасибо заранее!
EDIT: Моя проблема может быть решена с помощью инструмента jarjar. http://code.google.com/p/google-http-java-client/issues/detail?id=75
Кто-нибудь может помочь мне с этим инструментом? Я не знаю, как создать манифест Ant манифест или файл jar.
Спасибо