Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unity build error occurred: Execution failed for task ':launcher:mergeDexRelease'. #257

Open
garondo opened this issue Jun 17, 2024 · 0 comments

Comments

@garondo
Copy link

garondo commented Jun 17, 2024

Hello, I had this issue when I built android apk on unity.
unity version:2022.3.16f1

It seems like files in folder below are defined multiple times in another place?
native-googlesignin\src\main\java\com\google\googlesignin

I have searched for fixing long time but it still no solution.
Does anyone have any idea?

  • What went wrong:
    Execution failed for task ':launcher:mergeDexRelease'.
    A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate
    There was a failure while executing work items
    A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction
    com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
    Type com.google.googlesignin.GoogleSignInFragment$State is defined multiple times: >D:\project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\build.transforms\b912aa27fde5edc070cb71db7c70b335\transformed\classes\classes.dex, >D:\project\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build\intermediates\external_libs_dex\release\mergeExtDexRelease\classes.dex
    Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant