Search Issue Tracker
By Design
Votes
33
Found in
2021.3.40f1
2022.3.38f1
6000.0.11f1
Issue ID
UUM-76723
Regression
Yes
[Android] Build fails with Error "A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable" when using In-App Purchasing and Facebook SDK
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Switch to Android Platform
4. Build
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.38f1), 4.12.2 (2021.3.40f1, 2022.3.38f1, 6000.0.11f1)
Not reproducible with: 4.11.0 (2022.3.38f1)
Testing environment: Windows 10 Enterprise 21H2, macOS 14.5 23F79 Darwin 23.5.0
Not reproducible on: No other environment tested
Notes:
- Reproducible only when Facebook SDK is added
- Reproducible with Mono and IL2CPP
Comments (15)
-
unity_psBBuKYnBt2RIg
Aug 21, 2024 20:04
I finally managed to solve the problem. The solution that worked for me:
1. Upgrade IAP to version 4.12.x (I used 4.12.2): Windows -> Package Manager -> Find "In App Purchasing" and upgrade it to 4.12.0 (or later)
2. **Delete everything under Assets/ExternalDependencyManager/Editor** <- This is very important. This is the step that I missed and because of this I was not able to build the project
3. Install the latest version of External Dependency Manager (I used 1.2.182)
4. Restart Unity
5. Delete Resolved libraries (probably not needed): Assets-> External Dependency Manager -> Android Resolver -> Delete Resolved Libraries
6. Force Resolve: Assets-> External Dependency Manager -> Android Resolver -> Force Resolve
7. Build
8. Drink that well-deserved beer -
unity_psBBuKYnBt2RIg
Aug 21, 2024 19:10
Why is this issue completely ignored? There are tons of forums with this issue and no valid solution.
-
pavlostenoff
Aug 21, 2024 16:53
google billing deadline very soon - need fix now pls.
-
musicdeveloper
Aug 21, 2024 16:47
This issue is not isolated to the Facebook SDK.
I am experiencing this same duplicate build failure with a third party video recording framework that has never had any issues until Unity IAP 4.12
The deadline for Google Play Billing 6 is in a few days, we need a fix now!
-
ihamza301
Aug 19, 2024 07:49
Any update on this issue?
Any workaround?
The google deadline for IAP update is approaching really fast.
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
- Reflection Probe “Probe Scene Editing Mode:” text is barely visible
- [HDRP] Game view doesn’t refresh after changing Camera Background Type until mouse moves over it
- Some Shaders appear twice in Material Shader selection menu
- Editor freezes with a StackOverflowException when certain asset types are assigned to a managed component in a SubScene via AddComponentObject
- Text Script Importer Reference button links to a Missing Page when clicking the Reference Button in the Inspector
Resolution Note:
Solved by resolving dependencies with EDM4U (External Dependency Manager for Unity).
For details, see the first solution here: https://discussions.unity.com/t/iap-4-12-0-solutions-to-android-build-issues/1503523