You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What went wrong:
Execution failed for task ':launcher:checkDebugDuplicateClasses'.
1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.google.gson.DefaultDateTypeAdapter found in modules jetified-gson-2.8.5.jar (gson-2.8.5.jar) and jetified-gson-2.8.6.jar (com.google.code.gson:gson:2.8.6)
Duplicate class com.google.gson.ExclusionStrategy found in modules jetified-gson-2.8.5.jar (gson-2.8.5.jar) and jetified-gson-2.8.6.jar (com.google.code.gson:gson:2.8.6)
Duplicate class com.google.gson.FieldAttributes found in modules jetified-gson-2.8.5.jar (gson-2.8.5.jar) and jetified-gson-2.8.6.jar (com.google.code.gson:gson:2.8.6)
Duplicate class com.google.gson.FieldNamingPolicy found in modules jetified-gson-2.8.5.jar (gson-2.8.5.jar) and jetified-gson-2.8.6.jar (com.google.code.gson:gson:2.8.6)
Duplicate class com.google.gson.FieldNamingPolicy$1 found in modules jetified-gson-2.8.5.jar (gson-2.8.5.jar) and jetified-gson-2.8.6.jar (com.google.code.gson:gson:2.8.6)
The text was updated successfully, but these errors were encountered:
Our latest android sdk (v6.0) doesn't depend on Gson anymore so it'll resolve this issue but it's still in preview. Until we ship a Unity sdk that includes the new android sdk, the work around would be to repack the sentry sdk without the Gson dependency so it picks the one from the other upm package you're using which brings Gson.
Or the other way around, removing Gson from whatever other packages that are bringing it in so the one Sentry packs is used.
Execution failed for task ':launcher:checkDebugDuplicateClasses'.
The text was updated successfully, but these errors were encountered: