是否有人遇到类似的问题,或者处于可以帮助我的类似情况?
我发布了一个没有正确配置IAP base64公钥的应用程序,然后用我的手机购买了几个IAP(nexus 5),这就是我知道它没有正确配置的原因,因为它显示的错误信息,然而,付款经历了。但我从未得到过我购买的游戏内物品。然后我继续更新游戏并正确设置base64public键,然后在我的手机上更新游戏,但是现在每次去商店并点击购买之前购买过的商品,游戏就会崩溃。我用其他手机试过这个并没有崩溃。
TL; DR:购买IAP“项目a” - >游戏崩溃 - >从android dev acc - >中输入正确的base64publickey在手机上更新游戏 - >现在每次我去IAP时都会崩溃并点击“item a”(Nexus 5)
以下是我从nexus 5提交的一些崩溃报告:
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:200)
at android.os.Handler.<init>(Handler.java:114)
at android.app.Dialog.<init>(Dialog.java:108)
at android.app.AlertDialog.<init>(AlertDialog.java:125)
at android.app.AlertDialog$Builder.create(AlertDialog.java:967)
at com.theblackwhisker.animatcher.FlowBridges.alert(FlowBridges.java:619)
at com.theblackwhisker.animatcher.FlowBridges.complain(FlowBridges.java:611)
at com.theblackwhisker.animatcher.FlowBridges$3.onIabPurchaseFinished(FlowBridges.java:518)
at com.theblackwhisker.animatcher.util.IabHelper.launchPurchaseFlow(IabHelper.java:392)
at com.theblackwhisker.animatcher.util.IabHelper.launchPurchaseFlow(IabHelper.java:338)
at com.theblackwhisker.animatcher.FlowBridges.buyFeature(FlowBridges.java:714)
at org.cocos2dx.lib.Cocos2dxRenderer.nativeTouchesEnd(Native Method)
at org.cocos2dx.lib.Cocos2dxRenderer.handleActionUp(Cocos2dxRenderer.java:129)
at org.cocos2dx.lib.Cocos2dxGLSurfaceView$9.run(Cocos2dxGLSurfaceView.java:257)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
除了这3行之外,另一个是相同的:
at com.theblackwhisker.animatcher.FlowBridges.alert(FlowBridges.java:610)
at com.theblackwhisker.animatcher.FlowBridges.complain(FlowBridges.java:602)
at com.theblackwhisker.animatcher.FlowBridges.buyFeature(FlowBridges.java:701)
感谢您的帮助。