Troubleshooting
Last updated
Last updated
In some Unity versions (including several Unity 2020 and 2021 versions), you may encounter this error:
Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included or the current platform. Only one assembly with the same name is allowed per platform.
In this case, use the Didomi-noDll.unitypackage
release file instead of Didomi.unitypackage
, or manually remove the file Assets/Plugins/Didomi/IOS/Newtonsoft.Json.dll
from the regular package after importing it.
This is the default gradle version on Unity version 2021.3 and below.
With this version, you may encounter an error at build time:
If changing the gradle version is not possible, it is possible to fix this issue:
In Player settings, in Android section, activate Custom Main Gradle Template
and Custom Launcher Gradle Template
Modify Assets/Plugins/Android/mainTemplate.gradle
and Assets/Plugins/Android/launcherTemplate.gradle
by adding
before the dependencies
block.