问题描述
我Unibill设置为我的统一的项目,一切都很好与Android付款。现在试图让它运行亚马逊和它不工作。
我试了一下与亚马逊沙箱开启和关闭。我用pre-造amazon.sdktester.json,并与获取与Unibill自动创建一个尝试。似乎没有任何工作。我不断收到以下错误:
在应用内购买SDK - 沙盒模式:PurchasingListener上下文:com.unity3d.player.UnityPlayerNativeActivity@41a3ea20
UnibillBiller:GetItemDataRequest返回一个空的产品列表。你创建亚马逊开发者门户网站购买?
见http://www.outlinegames.com/unibillerrors#AMAZONAPPSTORE_GETITEMDATAREQUEST_NO_PRODUCTS_RETURNED
不知道是否有某种诡计,或者如果我失去了一些东西明显。
感谢
更新:
我增加了一些日志。不知道有没有什么帮助。
D / C(6745):在应用内购买SDK - 沙盒模式:用handleResponse
I / C(6745):与用户idl3HL7XppEMhrOGDnur9-ulvqomrSg6qyODKmah76lJU sendGetPurchaseUpdates =
I / C(6745):用发送用户ID PurchaseUpdates:l3HL7XppEMhrOGDnur9-ulvqomrSg6qyODKmah76lJU =;复位标志:真,本地光标:空,旧的requestId解析:GET_USER_ID_FOR_PURCHASE_UPDATES_ preFIX:1:0f310aba-f83e-4643-b5e3-896b3c552524
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):错误分析偏差:
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):java.lang.NumberFormatException:无效长:
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在java.lang.Long.invalidLong(Long.java:125)
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在java.lang.Long.parseLong(Long.java:346)
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在java.lang.Long.parseLong(Long.java:319)
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在com.amazon.sdktestclient.iap.command.PurchaseUpdatesCommandHandler.parseOffset(PurchaseUpdatesCommandHandler.java:122)
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在com.amazon.sdktestclient.iap.command.PurchaseUpdatesCommandHandler.executeRequest(PurchaseUpdatesCommandHandler.java:49)
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在com.amazon.sdktestclient.iap.command.IapCommandHandler.execute(IapCommandHandler.java:59)
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在com.amazon.sdktestclient.command.CommandBroker.onHandleIntent(CommandBroker.java:30)
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在android.app.IntentService $ ServiceHandler.handleMessage(IntentService.java:65)
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在android.os.Handler.dispatchMessage(Handler.java:99)
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在android.os.Looper.loop(Looper.java:151)
W / AmazonAppTester / PurchaseUpdatesCommandHandler(5192):在android.os.HandlerThread.run(HandlerThread.java:60)
D / C(6745):在应用内购买SDK - 沙盒模式:用handleResponse
I / C(6745):偏移量PurchaseUpdatesResponse:0
D / UnibillAmazonPlugin(6745):onPurchaseUpdatesResponse
E /统一(6745):UnibillBiller:GetItemDataRequest返回一个空的产品列表。你创建亚马逊开发者门户网站购买?
E /统一(6745):见http://www.outlinegames.com/unibillerrors#AMAZONAPPSTORE_GETITEMDATAREQUEST_NO_PRODUCTS_RETURNED
我无法评论,因为我没有足够的'名誉',但显然我可以回答。
有似乎与亚马逊的测试客户端本身的问题。这堆栈跟踪不会从Unibill到来。请发送或邮寄JSON文件Unibill产生,它是在该文件是导致亚马逊客户端崩溃可能的东西。
I got Unibill set up for my Unity project and everything is fine with Android payments. Now trying to get it running for Amazon and it is not working.
I tried it with "Amazon Sandbox" turned on and turned off. I tried it with a pre-made "amazon.sdktester.json" and with the one that gets created automatically with Unibill. Nothing seems to work. I keep getting the following error:
In App Purchasing SDK - Sandbox Mode: PurchasingListener Context: com.unity3d.player.UnityPlayerNativeActivity@41a3ea20
UnibillBiller: GetItemDataRequest returned an empty product list. Have you created your purchases on the Amazon developer portal?.
See http://www.outlinegames.com/unibillerrors#AMAZONAPPSTORE_GETITEMDATAREQUEST_NO_PRODUCTS_RETURNED
Not sure if there is some sort of trick or if I'm missing something obvious.
Thanks
UPDATE:I added a few more logs. Not sure if that helps.
D/c ( 6745): In App Purchasing SDK - Sandbox Mode: handleResponse
I/c ( 6745): sendGetPurchaseUpdates with user idl3HL7XppEMhrOGDnur9-ulvqomrSg6qyODKmah76lJU=
I/c ( 6745): send PurchaseUpdates with user id:l3HL7XppEMhrOGDnur9-ulvqomrSg6qyODKmah76lJU=;reset flag:true, local cursor:null, parsed from old requestId:GET_USER_ID_FOR_PURCHASE_UPDATES_PREFIX:1:0f310aba-f83e-4643-b5e3-896b3c552524
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): Error parsing offset:
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): java.lang.NumberFormatException: Invalid long: ""
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at java.lang.Long.invalidLong(Long.java:125)
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at java.lang.Long.parseLong(Long.java:346)
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at java.lang.Long.parseLong(Long.java:319)
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at com.amazon.sdktestclient.iap.command.PurchaseUpdatesCommandHandler.parseOffset(PurchaseUpdatesCommandHandler.java:122)
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at com.amazon.sdktestclient.iap.command.PurchaseUpdatesCommandHandler.executeRequest(PurchaseUpdatesCommandHandler.java:49)
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at com.amazon.sdktestclient.iap.command.IapCommandHandler.execute(IapCommandHandler.java:59)
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at com.amazon.sdktestclient.command.CommandBroker.onHandleIntent(CommandBroker.java:30)
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at android.os.Handler.dispatchMessage(Handler.java:99)
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at android.os.Looper.loop(Looper.java:151)
W/AmazonAppTester/PurchaseUpdatesCommandHandler( 5192): at android.os.HandlerThread.run(HandlerThread.java:60)
D/c ( 6745): In App Purchasing SDK - Sandbox Mode: handleResponse
I/c ( 6745): Offset for PurchaseUpdatesResponse:0
D/UnibillAmazonPlugin( 6745): onPurchaseUpdatesResponse
E/Unity ( 6745): UnibillBiller: GetItemDataRequest returned an empty product list. Have you created your purchases on the Amazon developer portal?.
E/Unity ( 6745): See http://www.outlinegames.com/unibillerrors#AMAZONAPPSTORE_GETITEMDATAREQUEST_NO_PRODUCTS_RETURNED
I can't comment since I don't have enough 'reputation' but apparently I can answer.
There appears to be a problem with Amazon's test client itself. That stack trace is not coming from Unibill. Please send or post the json file Unibill generates, it is likely something in that file that is causing the amazon client to crash.
这篇关于团结Unibill插件的问题与亚马逊测试,AMAZONAPPSTORE_GETITEMDATAREQUEST_NO_PRODUCTS_RETURNED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!