Search Unity

Bug IAP Error after upgrading to Unity 2020 LTS

Discussion in 'Unity IAP' started by modernator24, Jun 5, 2023.

  1. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    202
    after updated to 2020 LTS, above error messages came out

    Library/PackageCache/com.unity.purchasing@4.3.0/Runtime/SecurityStub/AppleValidator.cs(33,16): error CS0433: The type 'AppleReceipt' exists in both 'Security, Version=1.0.7807.33496, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.Purchasing.SecurityCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
    Library/PackageCache/com.unity.purchasing@4.3.0/Runtime/SecurityStub/AppleValidator.cs(53,16): error CS0433: The type 'AppleReceipt' exists in both 'Security, Version=1.0.7807.33496, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.Purchasing.SecurityCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
    Library/PackageCache/com.unity.purchasing@4.3.0/Runtime/SecurityStub/CrossPlatformValidator.cs(43,16): error CS0433: The type 'IPurchaseReceipt' exists in both 'Security, Version=1.0.7807.33496, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.Purchasing.SecurityCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
    Library/PackageCache/com.unity.purchasing@4.3.0/Runtime/SecurityStub/GooglePlayReceipt.cs(32,38): error CS0433: The type 'IPurchaseReceipt' exists in both 'Security, Version=1.0.7807.33496, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.Purchasing.SecurityCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
    Library/PackageCache/com.unity.purchasing@4.3.0/Runtime/WinRTStub/Factory.cs(15,23): error CS0433: The type 'IWindowsIAP' exists in both 'UnityEngine.Purchasing.WinRTCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'winrt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'


    Reinstalling iap package doesn't change anything. how to fix this stuff.