Apache Commons Codec with Android: could not find method

Posted by dqminh on Stack Overflow See other posts from Stack Overflow or by dqminh
Published on 2010-01-12T08:55:18Z Indexed on 2010/03/28 16:13 UTC
Read the original article Hit count: 563

Today I tried including the apache.commons.codec package in my Android application and couldn't get it running. Android could not find method ord.apache.commons.codec.binary.* and output the following errors in DDMS

01-12 08:41:48.161: ERROR/dalvikvm(457): Could not find method org.apache.commons.codec.binary.Base64.encodeBase64URLSafeString, referenced from method com.dqminh.app.util.Util.sendRequest

01-12 08:41:48.161: WARN/dalvikvm(457): VFY: unable to resolve static method 10146: Lorg/apache/commons/codec/binary/Base64;.encodeBase64URLSafeString ([B)Ljava/lang/String;

01-12 08:41:48.161: WARN/dalvikvm(457): VFY: rejecting opcode 0x71 at 0x0004

Any clue on how to solve this problem ? Thanks a lot.

© Stack Overflow or respective owner

Related posts about android

Related posts about apache-commons-codec