Method not found using DigestUtils in Android
I ran into the same issue trying to use DigestUtils in my Android app. This was the best answer I could find by searching, but I was reluctant to rebuild the .jar file with the namespace changed. After spending some time on this issue, I found an easier way to solve the problem for my case. The problem statement for my code was
String s = DigestUtils.md5Hex(data);
Replace this statement with the following and it will work:
String s = new String(Hex.encodeHex(DigestUtils.md5(data)));
Similarly, for shaHex exampl, you can change it to
String hash = new String(Hex.encodeHex(DigestUtils.sha("textToHash")));
This works because even though Android does not have encodeHexString(), it does have encodeHex(). Hope this would help others who run into the same issue.
java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString
Why can't you change the kaltura client?
You have the sources, so just make the necessary change
Related Topics
Add Ripple Effect to My Button with Button Background Color
Google Android Usb Driver and Adb
Access the Http Response Headers in a Webview
Android Studio Fails to Debug with Error Org.Gradle.Process.Internal.Execexception
Measuring Text Height to Be Drawn on Canvas ( Android )
Vectordrawable - Is It Available Somehow for Pre-Lollipop Versions of Android
How to Read the File Content from the Internal Storage - Android App
Connecting Mongodb from Mobile or Browser Based Application
Android HTML5 Input Type="Password" and Numeric Keyboard
Local Image Caching Solution for Android: Square Picasso, Universal Image Loader, Glide, Fresco
How to Enable Logging for Apache Commons Httpclient on Android
How to Disable Past Dates in Android Date Picker
Gson Noclassdeffounderror After Adt and Sdk Tools Update to V17
Difference Between Activity and Fragmentactivity
Textwatcher for More Than One Edittext
How to Find If a Particular Package Exists on My Android Device