- Home /
Unity 2019.2 IAP UnityEngine.UI error
Hello! I've upgraded my project to the latest Unity 2019.2 release. I'm using Unity IAP and there's an error...
Error: Could not load signature of UnityEngine.Purchasing.UIFakeStore:GetOkayButton due to: Could not load file or assembly 'UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:<unknown type> member:(null) signature:<none>
I'm aware that Unity extracted UI to a package. This error shows when Cloud Build tries to compile the project, but also shows sometimes in-project. Does anyone know about this error?
I just posted a very similar issue regarding this, not realizing that UnityEngine.UI.dll is now compiled by each project because it's now manged by the package manager.
In my case, I don't get any errors. The issue is that any script that inherits a UIBehaviour now doesn't show up in the editor. I can't add them as a component, and any existing references are broken.
This error is very annoying, but it seems like most people don't have it.
I don't think many people create class libraries that reference UnityEngine.UI.dll. I did find a glorious forum post from Unity themselves admitting they didn't think of class libraries referencing that DLL. I am still not sure how to solve it. $$anonymous$$ore realistically, I may have to simply downgrade to before they screwed everything up regarding DLLs until they figure it all out.
Same here, can't seem to get it to work. Form me, the error appears when building for ios on the cloud. Android builds fine locally
i got it in 2020, and it crashes android app on start up i believe
Answer by assaf_hershko · Feb 28, 2020 at 11:54 PM
Had the same issue. Fixed it by doing "Reimport All" from the Assets menu.
Answer by _Keith · Oct 29, 2019 at 03:50 AM
I've been getting the same error for over 2 months now, and I've tried everything short of rolling back to 2018.x (which will be a nightmare, I'm sure).
I started a thread on the Unity Cloud Build forums, but haven't received any responses. https://forum.unity.com/threads/iap-errors-in-cloud-build.766796/
There was also, apparently the same issue with the Unity IAP Library itself, in the editor, but it seems like that is resolved now. https://forum.unity.com/threads/iap-erros-in-unity-2019-2-9f.759533/
Answer by drawcode · Jan 24, 2020 at 11:01 PM
Got the same thing. I solved it in Unity 2019.2.19f1 by doing this:
Go to Project Assets
Search for 'Purchasing'
Delete all Unity Purchasing items
Go to Services tab, import IAP again, which installs UDP (distro) and then IAP
Seems to have solved it, must have either been a clean up thing or cache server was re-importing it.
HTH
Answer by justaddice83 · May 05, 2020 at 10:52 AM
Same error Unity 2019.3.7 using In App Purchasing package v2.0.6
Usually on library build, and it appears in Unity Cloud Build.
Answer by sajjadgameactor · Mar 12, 2020 at 04:29 PM
I had same error after update my unity version from 2019.2.15 to 2019.3.2 The solution in my case was to comment this line in my IAP manager script
//builder.Configure<IMicrosoftConfiguration>().useMockBillingSystem = false;
I also comment
//using UnityEngine.UI;
in that script.
Your answer
Follow this Question
Related Questions
Setting up UnityIAP 0 Answers
VR UI doubling 0 Answers
Implicit "Horizontal" Axis exceptions? 1 Answer
Unity IAP InitializePurchasing taking too long. 1 Answer
Handle screen rotation manually 0 Answers