gree / gree/unity-webview

Android build failed after importing webview into package

Open
#1,122 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C++
Stars
2.7k
Forks
734
Avg merge
11h 39m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Android release build for the launcher and inspect the :launcher:mergeDexRelease failure. Trace the duplicate androidx.annotation.experimental.R definitions between the project dex archive and external libraries. Done means the release build completes without the duplicate-class error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, unity
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.