使用 Base32 编码和解码字符串

Encode and Decode String using Base32

我想使用Base32 对字符串进行编码和解码。 但是我在使用 Apache Commons Codec 1.11

时遇到错误

我用过这个答案,但对我不起作用 (link) ().

这是我面临的错误 Screenshot...

谢谢...!!!

编辑:-

Check this Screen shot

从这里下载的 jar 文件:click me

其中一个选项应该对您有所帮助:

选项 1:将此添加到您的 build.gradle:

android {
    // Your main config here...
    packagingOptions {
        exclude 'org/apache/commons/codec/language/bm/gen_approx_hungarian.txt'
    }
}

确保我从您的屏幕截图中正确复制了冲突的文件名。

选项 2: 从依赖项列表中删除测试库: commons-codec-1.11-tests.jar commons-codec-1.11-test-sources.jar