Skip to content

[Bug] checkReleaseDuplicateClasses errors on build an AAB file with the enabled setting "Build app bundle (Google Play)" and "Split application binary" at the same time. #653

Closed
@dendyak

Description

@dendyak

[REQUIRED] Please describe the issue here:

In Unity when I'm trying to build an AAB file with the enabled setting "Build app bundle (Google Play)" and "Split application binary" at the same time I'm facing errors, telling me about duplicate classes.
When I send a bug report to Unity, there is the link:
https://issuetracker.unity3d.com/issues/error-execution-failed-for-task-launcher-checkreleaseduplicateclasses-is-thrown-when-building-with-a-build-app-bundle-google-play-and-split-application-binary-enabled-at-the-same-time

Unity said me that it is not a problem of Unity because: "this problem started to happen because we were forced to replace dependency of obsolete com.google.android.play:core package with dependency of com.google.android.play:asset-delivery. This change cannot be reverted. But it appears that Google External Dependency Manager (which is not the Unity developed tool) can't correctly resolve dependencies in this case".

EDM4U team, please can you fix this on your side?

Issue repro rate: 100%

I have a downloadable sample project that reproduces the bug:
https://drive.google.com/file/d/1ixPdW3QJcO-hWfu-Vpupubt0ZmSHZs-k
Repro project is just simple empty project with GoogleMobileAds 8.4.1 plugin attached and resolved by External Dependency Manager 1.2.176. Also "BUILD APP BUNDLE (GOOGLE PLAY)" and "SPLIT APPLICATION BINARY" enabled at the same time. Try to BUILD this project and you will see many "checkReleaseDuplicateClasses" errors.

It does not happens on older version of Unity (2022.2.9f1 for example), but Unity said me it is not their problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions