MissingMethodException: Method not found: 'UnityEngine.VR.VRSettings.get_enabled'

Hi, I’m having this issue in using Unity IAP on Android as in this thread: Cannot get IAP to work on Android devices

Both the solutions (reinstall IAP or copy IAP folders from a new project didn’t work for me). Would someone mind to add a try/catch block in the Purchase class or suggest me a specific workaround? Please, I don’t want to use third-party plugins but actually I can’t find any solution that works, thank you.

05-15 17:42:09.085 3171 3199 E Unity : MissingMethodException: Method not found: ‘UnityEngine.VR.VRSettings.get_enabled’.
05-15 17:42:09.085 3171 3199 E Unity : at UnityEngine.Purchasing.JSONStore.Purchase (UnityEngine.Purchasing.ProductDefinition product, System.String developerPayload) [0x00000] in :0
05-15 17:42:09.085 3171 3199 E Unity : at UnityEngine.Purchasing.PurchasingManager.InitiatePurchase (UnityEngine.Purchasing.Product product, System.String developerPayload) [0x00000] in :0
05-15 17:42:09.085 3171 3199 E Unity : at UnityEngine.Purchasing.PurchasingManager.InitiatePurchase (UnityEngine.Purchasing.Product product) [0x00000] in :0

This is discussed several places, please search for VRSettings.get_enabled. Specifically, you need to install Unity 2019 to location without a space in it, like C:\Unity. We are working to resolve the issue.

It works, thank you

It’s working. Thanks bro