Quantcast
Channel: Questions in topic: "exception"
Viewing all articles
Browse latest Browse all 470

TypeLoadException Error with Unity IAP,TypeLoadException Error when implementing Unity IAP

$
0
0
I am trying to implement Unity IAP into my mobile game. But, as soon as I finished my Purchaser script, I'm getting a TypeLoadException Error: TypeLoadException: Could not load type 'UnityEngine.Purchasing.NativeStoreProvider' from Assembly Stores, Version=1.0.6614.24906, Culture=neutral, PublicKeyToken=null. UnityEngine.Purchasing.StandardPuchasingModule.Instance() My error is in the line --> var builder = ConfigurationBuilder.Instance(...) public void InitializePurchasing() { if (IsInitialized()) { return; } var builder = ConfigurationBuilder.Instance (StandardPurchasingModule.Instance ()); builder.AddProduct(GEMS_100, ProductType.Consumable); builder.AddProduct(GEMS_400, ProductType.Consumable); builder.AddProduct(GEMS_800, ProductType.Consumable); builder.AddProduct(GEMS_1600, ProductType.Consumable); UnityPurchasing.Initialize(this, builder); } private bool IsInitialized() { // Only say we are initialized if both the Purchasing references are set. return m_StoreController != null && m_StoreExtensionProvider != null; } Thanks in advance

Viewing all articles
Browse latest Browse all 470

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>