Search Issue Tracker
By Design
Votes
6
Found in
2021.3.41f1
2022.3.40f1
6000.0.13f1
Issue ID
UUM-77069
Regression
Yes
[Android] Build fails with Error "A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable" when using In-App Purchasing
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/Client.unity” Scene
3. Switch to Android Platform
4. Build and Run
Expected result: Build finishes successfully
Actual result: Build fails with Error “A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable“
Reproducible with: 4.12.0 (2022.3.40f1), 4.12.2 (2021.3.41f1, 2022.3.40f1, 6000.0.13f1)
Not reproducible with: 4.11.0 (2022.3.40f1)
Testing environment: Windows 10 Enterprise 21H2, macOS 14.5 23F79 Darwin 23.5.0
Not reproducible on: No other environment tested
Note:
- Reproducible with Mono and IL2CPP
- Forum threads:
-- https://discussions.unity.com/t/unity-2022-3-37f1-uses-wrong-gradle-plugin-version/372561
-- https://discussions.unity.com/t/after-updating-iap-to-4-12-2-an-error-occurs-in-android-build/1502616
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note:
We ran some tests and solved the issue by doing the following:
Add External Dependency Manager (https://developers.google.com/unity/archive#external_dependency_manager_for_unity)
Follow solution 1 (https://discussions.unity.com/t/iap-4-12-0-solutions-to-android-build-issues/1503523)
Note: The Mobile Dependency Resolver is an outdated Unity fork of the EDM4U. Installing EDM4U is the equivalent of updating that package.