(统一)溢出异常?实施无代码IAP

时间:2018-08-26 10:09:42

标签: c# unity3d in-app-purchase

enter image description here我已经发布了游戏,现在正在实施IAP(在应用内购买)。 我正在关注Unity官方的无代码IAP教程。 但是当我尝试另存为csv文件时,控制台显示“溢出错误”并且文件未保存... 我不知道Integer溢出和csv文件之间有什么关系。

请问有人有想法吗?

下面是控制台说明 OverflowException:值大于Int32.MaxValue或小于Int32.MinValue System.Convert.ToInt32(十进制值)(位于/Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Convert.cs:1209) UnityEditor.Purchasing.GooglePlayProductCatalogExporter.PackPrice(UnityEngine.Purchasing.ProductCatalogItem产品) UnityEditor.Purchasing.GooglePlayProductCatalogExporter.Export(UnityEngine.Purchasing.ProductCatalog目录) UnityEditor.Purchasing.ProductCatalogEditor + ProductCatalogExportWindow.ExportHelper(IProductCatalogExporter导出器,System.String路径) UnityEditor.Purchasing.ProductCatalogEditor + ProductCatalogExportWindow.Export(IProductCatalogExporter导出器) UnityEditor.Purchasing.ProductCatalogEditor + ProductCatalogExportWindow.OnGUI(矩形) UnityEditor.PopupWindow.OnGUI()(在C:/buildslave/unity/build/Editor/Mono/GUI/PopupWindow.cs:92) System.Reflection.MonoMethod.Invoke(System.Object obj,BindingFlags invokeAttr,System.Reflection.Binder绑定程序,System.Object []参数,System.Globalization.CultureInfo文化)(在/ Users / builduser / buildslave / mono / build / mcs / class / corlib / System.Reflection / MonoMethod.cs:222) 作为TargetInvocationException重新抛出:调用的目标已抛出异常。 System.Reflection.MonoMethod.Invoke(System.Object obj,BindingFlags invokeAttr,System.Reflection.Binder绑定程序,System.Object []参数,System.Globalization.CultureInfo文化)(在/ Users / builduser / buildslave / mono / build / mcs / class / corlib / System.Reflection / MonoMethod.cs:232) System.Reflection.MethodBase.Invoke(System.Object obj,System.Object []参数)(位于/Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115) UnityEditor.HostView.Invoke(System.String methodName,System.Object obj)(在C:/buildslave/unity/build/Editor/Mono/HostView.cs:295) UnityEditor.HostView.Invoke(System.String methodName)(在C:/buildslave/unity/build/Editor/Mono/HostView.cs:288) UnityEditor.HostView.OldOnGUI()(在C:/buildslave/unity/build/Editor/Mono/HostView.cs:107) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI(UnityEngine.Event evt)(位于C:/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:182)

0 个答案:

没有答案