15

I've added commons-codec-1.4.jar in my project file and also added

import org.apache.commons.codec.binary.Base64;

But whenever I build it it gives me an error:package org.apache.commons.codec.binary does not exist Why it's not working?

1
  • "I've added commons-codec-1.4.jar in my project file" -- please explain what you did. "Why it's not working?" -- what you did to add that JAR did not work, apparently. If you are using Android Studio, you should not be using the JAR, but instead use the artifact from a repository. If you are using Eclipse, just putting the JAR in libs/ should be sufficient. Commented Apr 4, 2015 at 15:15

1 Answer 1

19

i were also facing the same issue. it was resolved by adding commons-codec.jar

you may download it from http://mvnrepository.com/artifact/commons-codec/commons-codec/1.7

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.