-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

Abhinav Gupta
  • 2,225
  • 1
  • 14
  • 30
  • 1
    remove all files from libs except `commons-codec-1.11.jar` – Henry Oct 01 '18 at 07: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 – Abhinav Gupta Oct 01 '18 at 08:02

1 Answers1

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

Andrei Vinogradov
  • 1,865
  • 15
  • 32