简体   繁体   English

使用Base32编码和解码字符串

[英]Encode and Decode String using Base32

I want to use Base32 for encoding and decoding for a string. 我想使用Base32对字符串进行编码和解码。 But I am getting error while am using Apache Commons Codec 1.11 但是在使用Apache Commons Codec 1.11时出现错误

I have used this answer but not work for me ( link ) ( link2 ). 我已经使用了这个答案,但不适用于我( link )( link2 )。

This is the error Screenshot which is I am facing... 这是我面临的错误 截图 ...

Thanks...!!! 谢谢...!!!

EDIT :- 编辑:-

Check this Screen shot 检查此屏幕截图

jar file downloaded from here : click me 从这里下载的jar文件: 单击我

One of this options should help you: 此选项之一应该可以帮助您:

Option 1 : Add this to your build.gradle: 选项1 :将此添加到您的build.gradle:

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

Make sure, that I copied conflicting file name correctly from your screenshot. 确保从快照中正确复制了冲突的文件名。

Option 2: Remove test libraries from dependencies list: commons-codec-1.11-tests.jar commons-codec-1.11-test-sources.jar 选项2:从依赖关系列表中删除测试库:commons-codec-1.11-tests.jar commons-codec-1.11-test-sources.jar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM