An exception occurred while encoding:
Java.lang.NoSuchMethodError:No static Method Encodebase64string ([B) ljava/lang/string; in class lorg/apache/commons/ Codec/binary/base64; or its Super classes (Declaration of ' org.apache.commons.codec.binary.Base64 ' appears in/system/framework/ Org.apache.http.legacy.boot.jar)
Decoding problem:
Java.lang.NoSuchMethodError:No static method DecodeBase64 (ljava/lang/string;) [B in class lorg/apache/commons/codec/ Binary/base64; or its Super classes (Declaration of ' org.apache.commons.codec.binary.Base64 ' appears in/system/framework/ Org.apache.http.legacy.boot.jar)
Through the analysis log, found that because the framework layer of Android system also used Apache COMMONS-CODEC this package, and I introduced in the LIB package conflict ...
Solution: From http://archive.apache.org/dist/commons/codec/binaries/download in the background staff version of the same version of the package source package, directly to the source code directly to use. Don't forget to change the name of the bag!
A half-day effort to re-guide the package, found or not to use, Language.java thrown out of the problem, application started to find our Language and no system, on the problem of this motherfucker. We just have to encode and decode the function, so we just have to delete this package right away .
The last perfect run! Kai Sen. My directory structure is:
========================= "
If you cannot access the above, you can access Commons-codec-1.6-bin.zip
Problems with Commons-codec-1.6.jar for Base64 codec in Android