Hi, I have a problem on adding the library in Android Studio on a Unity project exported for Android Studio.
Multiple dex files define Lcom/wikitude/common/camera/CameraSettings$CameraFocusMode;
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
How can I do to solve this problem?
Thanks for replying, I know that is better to work completely with the JS API but I really need the Unity's enviroment. I've already checked online for this error and I find that this type of exception occurs on duplicated import of a library (maybe the one used with Unity and the one I import manually on Android Studio). So I was wondering if there is a way to implement both and exclude some modules, because I cannot access the Architect class without the 'wikitude.aar' library.
I really hope for a Unity plugin with the POI feature.
We haven't had this error report until now internally and it has not been reported by customers yet - most likely due to the Unity / JS API mixing. If we have any further insight on this we'll let you know.
Did you check online for details on the error message (e.g. Stackoverflow) ? When I search for this error message i found quite some details on different forums. As our Unity Plugin is not supposed to be used in this way, I strongly recommend to work completely with the JS API.
Thx and greetings