cafebazaar / unitypurchasing

Cafebazzaar payment implementation for unity purchasing
4 stars 2 forks source link

NotSupportedException #2

Open azinsf7 opened 2 years ago

azinsf7 commented 2 years ago

سلام. بنده با روش codeless طبق نکاتی که گفته بودید پیش رفتم و آیتم ها رو در سایت دقیق وارد کردم. ولی موقع خروجی اندروید به این errorr میخورم و اصلا به کافه بازار وصل نمیشم. ممنون میشم راهنماییم کنید

NotSupportedException: Failed to bind to native store: UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.unity.purchasing.common.IUnityCallback at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJavaProxy..ctor (System.String javaInterface) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.JavaBridge..ctor (UnityEngine.Purchasing.IUnityCallback forwardTo) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.NativeStoreProvider.GetAndroidStoreHelper (UnityEngine.Purchasing.IUnityCallback callback, UnityEngine.Purchasing.AppStore store, UnityEngine.Purchasing.Extension.IPurchasingBinder binder, Uniject.IUtil util) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.NativeStoreProvider.GetAndroidStore (UnityEngine.Purchasing.IUnityCallback callback, UnityEngine.Purchasing.AppStore store, UnityEngine.Purchasing.Extension.IPurchasingBinder binder, Uniject.IUtil util) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.StandardPurchasingModule.InstantiateAndroid () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.StandardPurchasingModule.InstantiateStore () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.StandardPurchasingModule.Configure () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.PurchasingFactory..ctor (UnityEngine.Purchasing.Extension.IPurchasingModule first, UnityEngine.Purchasing.Extension.IPurchasingModule[] remainingModules) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.ConfigurationBuilder.Instance (UnityEngine.Purchasing.Extension.IPurchasingModule first, UnityEngine.Purchasing.Extension.IPurchasingModule[] rest) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.CodelessIAPStoreListener.InitializePurchasing () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.Purchasing.NativeStoreProvider.GetAndroidStore (UnityEngine.Purchasing.IUnityCallback callback, UnityEngine.Purchasing.AppStore store, UnityEngine.Purchasing.Extension.IPurchasingBinder binder, Uniject.IUtil util) (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.StandardPurchasingModule.InstantiateAndroid () (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.StandardPurchasingModule.InstantiateStore () (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.StandardPurchasingModule.Configure () (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.PurchasingFactory..ctor (UnityEngine.Purchasing.Extension.IPurchasingModule first, UnityEngine.Purchasing.Extension.IPurchasingModule[] remainingModules) (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.ConfigurationBuilder.Instance (UnityEngine.Purchasing.Extension.IPurchasingModule first, UnityEngine.Purchasing.Extension.IPurchasingModule[] rest) (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.CodelessIAPStoreListener.InitializePurchasing () (at <00000000000000000000000000000000>:0)

manjav commented 2 years ago

این مشکل مربوط به پیدا نکردن فایل یا کلاسی از فایل aar هست از وجود آن در پروژه اطمینان حاصل کنید. حتما قبل از هر گونه پیاده‌سازی نمونه پروژه را یک بار بدون تغییر امتحان نمایید

azinsf7 commented 2 years ago

سلام مجدد من آخرین پلاگین تون رو هم نصب کردم همچنان به همون اررور میخوره

azinsf7 commented 2 years ago

اررور ذکر شده NotSupportedException: Failed to bind to native store: UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.farsitel.bazaar.BazaarPurchasing at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.NativeStoreProvider.GetAndroidStoreHelper (UnityEngine.Purchasing.IUnityCallback callback, UnityEngine.Purchasing.AppStore store, UnityEngine.Purchasing.Extension.IPurchasingBinder binder, Uniject.IUtil util) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.NativeStoreProvider.GetAndroidStore (UnityEngine.Purchasing.IUnityCallback callback, UnityEngine.Purchasing.AppStore store, UnityEngine.Purchasing.Extension.IPurchasingBinder binder, Uniject.IUtil util) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.StandardPurchasingModule.InstantiateAndroid () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.StandardPurchasingModule.InstantiateStore () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.StandardPurchasingModule.Configure () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.PurchasingFactory..ctor (UnityEngine.Purchasing.Extension.IPurchasingModule first, UnityEngine.Purchasing.Extension.IPurchasingModule[] remainingModules) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.ConfigurationBuilder.Instance (UnityEngine.Purchasing.Extension.IPurchasingModule first, UnityEngine.Purchasing.Extension.IPurchasingModule[] rest) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Purchasing.CodelessIAPStoreListener.InitializePurchasing () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.Purchasing.NativeStoreProvider.GetAndroidStore (UnityEngine.Purchasing.IUnityCallback callback, UnityEngine.Purchasing.AppStore store, UnityEngine.Purchasing.Extension.IPurchasingBinder binder, Uniject.IUtil util) (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.StandardPurchasingModule.InstantiateAndroid () (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.StandardPurchasingModule.InstantiateStore () (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.StandardPurchasingModule.Configure () (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.PurchasingFactory..ctor (UnityEngine.Purchasing.Extension.IPurchasingModule first, UnityEngine.Purchasing.Extension.IPurchasingModule[] remainingModules) (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.ConfigurationBuilder.Instance (UnityEngine.Purchasing.Extension.IPurchasingModule first, UnityEngine.Purchasing.Extension.IPurchasingModule[] rest) (at <00000000000000000000000000000000>:0) UnityEngine.Purchasing.CodelessIAPStoreListener.InitializePurchasing () (at

afshinunity commented 1 year ago

تونستید مشکلتون رو حل کنید؟ چطوری؟ @azinsf7