Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Error message in "App Store Export > Xiaomi Mi Pay Catalog" of "IAP Catalog"

Discussion in 'Xiaomi' started by digitagames, Nov 2, 2018.

  1. digitagames

    digitagames

    Joined:
    Jun 14, 2017
    Posts:
    7
    After entering product information in the IAP Catalog, the following error occurred when exporting by selecting "App Store Export> Xiaomi Mi Pay Catalog".
    Please tell me how to fix this error.


    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.Purchasing.ProductCatalogEditor+ProductCatalogExportWindow.ExportHelper (IProductCatalogExporter exporter, System.String path)
    UnityEditor.Purchasing.ProductCatalogEditor+ProductCatalogExportWindow.Export (IProductCatalogExporter exporter)
    UnityEditor.Purchasing.ProductCatalogEditor+ProductCatalogExportWindow.OnGUI (Rect rect)
    UnityEditor.PopupWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/PopupWindow.cs:92)
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
    UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
    UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)
    UnityEditor.HostView.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:107)
    UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:182)
     
  2. unityjingyao

    unityjingyao

    Unity Technologies

    Joined:
    Feb 20, 2017
    Posts:
    220
    Hi,
    I'm sorry that you're experiencing this issue.
    It's a known issue and we're working on fixing it.
    Here is a workaround:
    1. Change the IAP target to another store, like Google Play.
    2. Change it back to Xiaomi IAP.
    Then you'll see the 'MiGameProductCatalog.prop' is exported automatically to 'Assets/Plugins/Android/assets' folder.
     
  3. digitagames

    digitagames

    Joined:
    Jun 14, 2017
    Posts:
    7
    Thank you for the reply!