I´m building a simple app for android 4.4 and up, i have a method to decode base64 string using the apache-commons-codec library.
import org.apache.commons.codec.binary.Base64;
public static String decodeBase64(String toDecode) {
byte[] decoded = Base64.decodeBase64(toDecode);
return new String(decoded);
}
but when i call this static method from the main (like className.decodeBase64(VAR)) I receive the following error. error log
i'm currently using jdk 8 and the last version of android studio. I know that the jdk8 implements a base64 encoder/decoder but i can´t use it, because I was limited to programming to more recent android versions at 8.0