Reputation: 11050
I have a tried and tested code to get information from an Excel file. It works wonders in java. However, when I try to use it in Android, I get this:
11-30 13:26:24.339: I/dalvikvm(9762): Could not find method org.apache.commons.codec.digest.DigestUtils.md5, referenced from method org.apache.poi.hssf.usermodel.HSSFWorkbook.addPicture
So, when I try to read a row, it always returns null.
How can I fix this problem?
Upvotes: 3
Views: 3156
Reputation: 100
To get rid of this problem, you can download Commons Codec library (or Jar file) from "http://www.java2s.com/Code/Jar/c/Downloadcommonscodec18jar.htm" or "http://commons.apache.org/proper/commons-codec/download_codec.cgi" link.. and then copy that jar file in "libs" folder of project. Run Your project, It's Done..
Upvotes: 0
Reputation: 48326
Promoting a comment to an answer... Apache POI has a small number of dependencies, which are fully listed on the Components page on the website. You need to include the dependencies of whichever POI modules you're using. In your case, the exception you got indicated that the Commons Codec library was missing, adding that solves the issue.
Upvotes: 6