I’m getting the exact same error as the original poster. I think it’s got to do with projects that have been updated from older versions of Unity, which is something I did a lot over the years.
Already submitted the bug report last week. Here’s the link, so everyone can vote on it:
Really hoping Unity fixes all these IAP build bugs ASAP.
How difficult is it to switch from Unity IAP to VoxelBusters Cross Platform IAP? I already have my products set up in my Google Play Console, and my script set to match. Will it require a lot of changing?
Just debating if I should remake my entire in-app shop, or if it’ll be easy to simply adjust it to the different plugin.
I voted on the bug but I don’t see the “ReproProj” project attachment that Unity can use to reproduce the problem. If you created the issue tracker thing can you add the download link to the project ? Thanks!
I get a ton of other errors when I build after unchecking “Remove property tag from GMA Android SDK” and Force Resolve:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.unity3d.ads.BuildConfig found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.10.0-runtime (com.unity3d.ads:unity-ads:4.10.0)
Duplicate class com.unity3d.ads.IUnityAdsInitializationListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.10.0-runtime (com.unity3d.ads:unity-ads:4.10.0)
Duplicate class com.unity3d.ads.IUnityAdsLoadListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.10.0-runtime (com.unity3d.ads:unity-ads:4.10.0)
etc etc etc
Removing Google Ad Property Tags did work for me, thank goodness. Interestingly, it was only checked because I was following instructions on another thread of people trying to work around the errors caused by updated to IAP 4.12, but their errors were different from mine anyway.
If anyone seeing this can’t find the Remove Property Tags checkbox, you need to update to the latest version of the Google Mobile Ads plug-in.
Now, just hoping Google Play reviews my app, and that there’s no bugs with the ads and store…
PS: Spuddicus, if the same fix for me didn’t work for you, maybe you should submit the bug report with your own project, if you haven’t already.
I have my build working too now by unchecking the Assets/Google Mobile Ads/Settings “Remove property tag from GMA Android SDK” box. I was getting a ton of other errors after doing that but they were related to my implementation of the Google Mobile Ads Unity Ads Mediation Adaptor which I’ve managed to fix by removing the “Advertising Legacy” package from the Package Manager. That was causing duplicate symbols.
By the way, have you uploaded your App to Play Store yet? Mine isn’t running ads anymore, even though it will run the test ad when I run it in Unity’s editor. They were running fine in the previous build (pre-IAP 4.12)
Idk any of those. In my attempts to get everything to build, I updated my version of the Google AdMob plug-in to V 8.6.0, as the version I was previously using didn’t have the “Remove Property tag from… etc” checkbox. Now my ads aren’t playing when I run the app on my phone.
I’m wondering if this issue is specific to me or known. I did all of this that you mentioned, and yes it does make it so that it successfully resolves, but here is where my issue is.
I’m using Unity 6, EDM4U 1.2.183, with Google Play Game services 10.14 (for achievements), unity ads, and IAP 4.12. If I try to build my project using the recommended custom gradles, the project builds successfully, but then play game services never authenticates itself. Everything else works flawlessly.
Now, the way my game has been successfully building thus far is using the manual plugins in the Android/plugins folder. When I use IAP 4.11 to build out with the manual plugins and no custom gradles, it’ll build flawlessly AND play game services works and authenticates itself for achievements.
However, if I try to use the plugins AND 4.12, leaving the gradles unchecked/checked, it’l throw all of the duplicate classes error and won’t build.
I’ve tried adding a custom pro guard which specifies achievements and so on, but nothing seems to work for my game play services other than leaving the plugins and building. Is there anything else I’ve missed with using play game services and custom gradles because in the custom Gradle it does post google play games 10.14 as a dependency, but it just doesn’t seem to matter or do anything.
I also checked every folder for duplicate classes and none exist. If I remove IAP 4.12 while leaving all of the plug ins, it’ll build fine, so there’s definitely something causing that error between 4.12 and manual plugins.