0

I am currently developing android application which is in include "Generate PDF" and "Send mail with out user interacting (Send mail in background)". I am using 4 library. activation.jar, additionnal.jar, mail.jar & droidText.0.2.jar. When i run this project it's give error.

[2014-10-17 17:58:00 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/apache/harmony/awt/internal/nls/Messages;
[2014-10-17 17:58:00 - PdfMail] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/apache/harmony/awt/internal/nls/Messages;

I see many link. Like this But i am not getting right answer. So How can i resolve this?

Edited

I solve this problem. I have just replace droidText.0.2.jar with itextg-5.5.3.jar file.

Community
  • 1
  • 1
Jigar Shekh
  • 2,800
  • 6
  • 29
  • 54

1 Answers1

0

Are you using Android Studio? if yes, this temporary work around might help

add this to build.gradle:

android
{

dexOptions {
        preDexLibraries = false
    }
...

}
vkm
  • 548
  • 7
  • 23