-1

I want to use Base32 for encoding and decoding for a string. But I am getting error while am using Apache Commons Codec 1.11

I have used this answer but not work for me (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

2
  • 1
    remove all files from libs except commons-codec-1.11.jar Commented Oct 1, 2018 at 7:58
  • I did but after that m getting this error :- Unable to delete file: C:\Users\GLB-BAN-414\AndroidStudioProjects\Gramboard\app\build\intermediates\transforms\mergeJavaRes\debug\0.jar Commented Oct 1, 2018 at 8:02

1 Answer 1

2

One of this options should help you:

Option 1: Add this to your 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

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

7 Comments

I did but after that m getting this error :- Unable to delete file: C:\Users\GLB-BAN-414\AndroidStudioProjects\Gramboard\app\build\intermediates\transforms\mergeJavaRes\debug\0.jar
Try to make clean build.
I have removed all libraries except this commons-codec-1.11.jar
Delete folder by yourself: C:\Users\GLB-BAN-414\AndroidStudioProjects\Gramboard\app\build\
Reboot and than delete. Something in system is using that file.
|

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.