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

Android build failed after importing webview into package #1122

Open
EmiranKaisar opened this issue Dec 13, 2024 · 1 comment
Open

Android build failed after importing webview into package #1122

EmiranKaisar opened this issue Dec 13, 2024 · 1 comment

Comments

@EmiranKaisar
Copy link

FAILURE: Build failed with an exception.

  • 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 androidx.annotation.experimental.R is defined multiple times: /Users/em/Documents/WorkSpace/ballremake/Library/Bee/Android/Prj/Mono2x/Gradle/launcher/build/intermediates/project_dex_archive/release/out/38183a5ae17e668dea2ad435519fd21103d40e3939c798d61e22c4a5f76b515b_3.jar:classes.dex, /Users/em/Documents/WorkSpace/ballremake/Library/Bee/Android/Prj/Mono2x/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.

@KojiNakamaru
Copy link
Member

The following project, for example, can be built without any error.

https://github.com/gree/unity-webview/commits/example-for-1121/

Please provide a concrete example that reproduces the issue, based on the sample app in this project.

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

2 participants