My program is generating duplicate .dex files and I am unsure why this is happening. The console output is as follows:
[2015-09-05 18:49:47 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/googlecode/android_scripting/Analytics$1;
[2015-09-05 18:49:47 - SensibilityTestbed2] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/googlecode/android_scripting/Analytics$1;
And after every attempt to run the program, the files get duplicated once again; they look like:
ScriptActivity$1.class, ScriptActivity$2.class, ScriptActivity$3.class...etc
I have tried just about every single combination from previous SO posts, including but not limited to:
- Unchecking different library dependencies in the Java Build Path.
- Deleting duplicate .jar files.
But to no avail, so I was wondering if there is a way to make the compiler completely ignore these duplicate .dex files? I am working with Eclipse.