W
W
wolfak2019-05-26 11:30:11
Android
wolfak, 2019-05-26 11:30:11

How to solve the problem with In-App Purchase in Unity3D 2018.3?

Hello!
When using In-App Purchase in Unity3D 2018.3 and testing the game in the development environment everything works fine, but when used on a real device, the window for paying for purchases is not displayed! The following error is displayed in the console:

System.Exception: Error: called non-existent method System.Boolean UnityEngine.VR.VRSettings::get_enabled()

On the developer's site, I found that this problem was fixed in the latest versions of the plugin, but I can not update it. How can I fix the error myself? Thank you.
[AssemblyUpdater] Type reference 'UnityEngine.VR.VRSettings' replaced with 'UnityEngine.XR.XRSettings' as the declaring type of 'System.Boolean UnityEngine.VR.VRSettings::get_enabled()' in 'System.Void UnityEngine.Purchasing. GooglePlayAndroidJavaStore::purchase(System.String,System.String) {IL_0026: call System.Boolean UnityEngine.VR.VRSettings::get_enabled()}'.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2019-05-28
@wolfak

there, in fact, everywhere they write to try to install the unit so that there are no spaces in the path.
and the project as well) to be sure)
delete, re-import IAP. and that look will pass) but in general they promised that they will fix it in Unity2019 or have already fixed it)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question