使用Cocos2dx中的soomla恢复应用购买Android中的交易

时间:2014-06-20 07:31:41

标签: android in-app-purchase soomla

在此行中收到以下错误

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

这是应用程序购买中的第一个我正在做的... C ++中的Cocos2dx 如果重新安装应用程序,具有相同的帐户ID,从而完成购买,如何恢复应用内购买的交易 或者还有其他方法可以使用soomla恢复交易。

1 个答案:

答案 0 :(得分:0)

这些问题已在较新版本的SOOMLA中修复。