Unity IAP: MissingMethodException: bool UnityEngine.VR.VRSettings.get_enabled()

Tried implementing the Unity IAP in my app and this came up from logcat:
MissingMethodException: bool UnityEngine.VR.VRSettings.get_enabled()

I searched on the intertnet and tried re-importing the Unity IAP like done here: https://forum.unity.com/threads/iap-troubleshooting-remove-and-reinstall-unity-iap.511747/
and it didn’t work, it didn’t show me the Update API window…

I used this tutorial to implement the IAP Unity IAP - Unity Learn

Can anyone help me?

Just dealt with this bug today, what fixed it for me was moving where unity was installed.

There is a bug in unity 2019, that means the IAP thing doesn’t get properly set up if there is a space in the file path to where unity is installed. As unity installs in “program files” by default on windows, that means it doesn’t work.

I just made a c:/unity folder and moved my existing install into it.

This fixed my issue.