在此行上获取以下错误
soomla::CCStoreController::sharedStoreController()->restoreTransactions();
06-20 12:34:55.858: E/SOOMLA PurchaseObserver(28017): Illegal state for operation (restorePurchases): IAB helper is not set up.
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): java.lang.IllegalStateException: IAB helper is not set up. Can't perform operation: restorePurchases
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.store.billing.IabHelper.checkSetupDoneAndThrow(IabHelper.java:433)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.store.billing.IabHelper.restorePurchasesAsync(IabHelper.java:112)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.store.billing.google.GooglePlayIabService.restorePurchasesAsync(GooglePlayIabService.java:66)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.store.StoreController$3.success(StoreController.java:233)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.store.billing.google.GooglePlayIabService.startIabHelper(GooglePlayIabService.java:164)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.store.billing.google.GooglePlayIabService.initializeBillingService(GooglePlayIabService.java:47)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.store.StoreController.restoreTransactions(StoreController.java:193)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.store.StoreController.restoreTransactions(StoreController.java:183)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.cocos2dx.store.StoreControllerBridge.restoreTransactions(StoreControllerBridge.java:67)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.cocos2dx.store.SoomlaNDKGlue.dispatchNDKCall(SoomlaNDKGlue.java:74)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at com.soomla.cocos2dx.store.SoomlaNDKGlue.receiveCppMessage(SoomlaNDKGlue.java:31)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(Native Method)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(Cocos2dxRenderer.java:72)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1494)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
06-20 12:34:55.868: E/SoomlaNDKGlue(28017): Unknown exception (java.lang.IllegalStateException: IAB helper is not set up. Can't perform operation: restorePurchases)
06-20 12:34:55.868: D/cocos2d-x debug info(28017): CCSoomlaError SOOMLA/Cocos2DX Got Unknown exception这是第一个在应用程序购买我是doing.....Cocos2dx在c++如何恢复交易的应用程序购买,如果应用程序被重新安装,具有相同的帐户id,从做剪枝或是否有任何其他方法来恢复交易使用soomla。
发布于 2014-09-13 23:26:26
在较新版本的SOOMLA中修复了这类问题。
https://stackoverflow.com/questions/24322146
复制相似问题