onepf / OpenIAB-Unity-Plugin

OpenIAB Unity Plugin for Android (Google Play, Samsung Apps, Amazon Appstore, SlideME, Nokia Store, Appland, Aptoide, AppMall, Yandex.Store, Fortumo), Windows Phone and iOS.
Apache License 2.0
147 stars 58 forks source link

Unity3d WP8 build is not working #86

Open ukn0wwh014m opened 8 years ago

ukn0wwh014m commented 8 years ago

Hello! My Android version of test app is working perfectly, but when i made build for WP i got this error: "Find can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.

(Filename: C:/buildslave/unity/build/artifacts/generated/WP8/runtime/UnityEngineGameObjectBindings.gen.cpp Line: 390)

Exception thrown: 'System.ArgumentException' in WinRTBridge.ni.DLL" Any suggestions how to fix it please?