Open E-Reg opened 3 years ago
The UNITY_PURCHASING define somehow is disabled but UNITY IAP is not. I will check if this circumstance is related to the error.
Edit: it is not.
We worked around this by embedding the Unity IAP package and changing the hardcoded Unity IAP path of GooglePlayBillingBuildHelper to
private const string UnityIapGoogleAndroidAarPath = "Packages/com.unity.purchasing@3.2.1/Plugins/UnityPurchasing/Android"
;
We worked around this by embedding the Unity IAP package and changing the hardcoded Unity IAP path of GooglePlayBillingBuildHelper to
private const string UnityIapGoogleAndroidAarPath = "Packages/com.unity.purchasing@3.2.1/Plugins/UnityPurchasing/Android"
;
Thank you, @MagicMiikka. Using the path "Library/PackageCache/com.unity.purchasing@3.2.1/Plugins/UnityPurchasing/Android"
indeed made the window appear and let me use the fix button, but the build process afterwards still exits with Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
Play-unity-plugins 1.4.0 Unity 2020.3.9f1 .NET 4.x IL2CPP Unity IAP Version 3.2.1 Also included: dependencies { implementation 'com.google.android.gms:play-services-ads:19.5.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7 implementation 'com.google.android.gms:play-services-base:17.6.0' // Assets/Firebase/Editor/AppDependencies.xml:17 implementation 'com.google.firebase:firebase-analytics:18.0.2' // Assets/Firebase/Editor/MessagingDependencies.xml:15 implementation 'com.google.firebase:firebase-app-unity:7.1.0' // Assets/Firebase/Editor/AppDependencies.xml:22 implementation 'com.google.firebase:firebase-auth:20.0.2' // Assets/Firebase/Editor/AuthDependencies.xml:13 implementation 'com.google.firebase:firebase-auth-unity:7.1.0' // Assets/Firebase/Editor/AuthDependencies.xml:20 implementation 'com.google.firebase:firebase-common:19.5.0' // Assets/Firebase/Editor/AppDependencies.xml:13 implementation 'com.google.firebase:firebase-crashlytics:17.3.1' // Assets/Firebase/Editor/CrashlyticsDependencies.xml:13 implementation 'com.google.firebase:firebase-crashlytics-unity:7.1.0' // Assets/Firebase/Editor/CrashlyticsDependencies.xml:20 implementation 'com.google.firebase:firebase-messaging:21.0.1' // Assets/Firebase/Editor/MessagingDependencies.xml:13 implementation 'com.google.firebase:firebase-messaging-unity:7.1.0' // Assets/Firebase/Editor/MessagingDependencies.xml:20 } Use jetifier and patch gradleTemplate / AndroidManifest / maintemplate is enabled, using Minify R8 is disabled.
Following https://developer.android.com/google/play/billing/unity:
A folder exists in given folder "UnityPurchasing~" (can't reconstruct after deleting it)