unity 5.2 plugin integration issue
I am having a world of trouble understanding how to integrate android plugins in unity under 5.2
The issue stems from the whole you can't have res folders in the root of Plugins/Android folder. So after some research i moved all my plugins to a libs folder, moved the res folder, and added the manifest file and properties file to create an android library. put the jar files in libs folder.
But a problem remains. It is unable to convert to dex. I get an error stating the following:
stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/neatplug/u3d/plugins/google/admob/b;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/neatplug/u3d/plugins/google/admob/a;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/neatplug/u3d/plugins/google/admob/c;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/neatplug/u3d/plugins/google/admob/d;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/neatplug/u3d/plugins/google/admob/f;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/neatplug/u3d/plugins/google/admob/i;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/neatplug/u3d/plugins/google/admob/j;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/neatplug/u3d/plugins/google/admob/k;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/neatplug/u3d/plugins/google/admob/l;
This I know happens when you have a duplicate library but I don't. I checked, and re installed everything! So at this moment i'm lost. How do I get this plugins to behave?
Answer by Chiri · Oct 05, 2015 at 11:55 AM
I believe that for some reason Unity might be adding this libraries with the integration of their services for ads. But since I am using using plugins it should not force the installation of its own ads plugins. I don't know how to test this idea though since the build fails still. Will keep trying to find the answer
Your answer
Follow this Question
Related Questions
Dex index overflow 65536 0 Answers
CommandInvokationFailure: Failed to re-package resources (ONE MORE TIME QQ) 1 Answer
Error to import Unity project with Vuforia to Android Studio 3.0 0 Answers
Android Build Error : IOException: Win32 IO returned 232 3 Answers
Error while saving blame file 6 Answers