JBTALKS.CC

标题: Google In App Billing unable to start receiver [打印本页]

作者: kenji0523    时间: 2014-3-3 07:07 PM
标题: Google In App Billing unable to start receiver
i have an own google in app billing SDK, which work at application A, but show unable to start receiver at application B. my log did receive those callback singed data from google service.. and i dont know why....hundred thanks if this problem is solve... Below is the log i receive...Please do let me know if another thing is necessary...
  1. 03-03 19:05:05.135: I/BillingService(12572): Service starting with onCreate
  2. 03-03 19:05:05.135: I/BillingService(12572): Market Billing Service Successfully Bound
  3. 03-03 19:05:05.170: I/BillingService(12572): Market Billing Service Connected.
  4. 03-03 19:05:07.130: I/BillingService(12572): isBillingSupported response was: RESULT_OK
  5. 03-03 19:05:07.130: I/BillingService(12572): requestPurchase()
  6. 03-03 19:05:07.140: I/BillingService(12572): current request is:9096932744197679716
  7. 03-03 19:05:07.140: I/BillingService(12572): REQUEST_PURCHASE Sync Response code: RESULT_OK
  8. 03-03 19:05:11.110: I/BillingService(12572): Received action: com.android.vending.billing.IN_APP_NOTIFY
  9. 03-03 19:05:11.110: I/BillingService(12572): notify got id: android.test.purchased
  10. 03-03 19:05:11.110: I/BillingService(12572): getPurchaseInformation()
  11. 03-03 19:05:11.110: I/BillingService(12572): Nonce generateD: 5044355212491260364
  12. 03-03 19:05:11.135: I/BillingService(12572): current request is:1078848523662405957
  13. 03-03 19:05:11.135: I/BillingService(12572): GET_PURCHASE_INFORMATION Sync Response code: RESULT_OK
  14. 03-03 19:05:12.020: I/BillingService(12572): Received action: com.android.vending.billing.PURCHASE_STATE_CHANGED
  15. 03-03 19:05:12.020: I/BillingService(12572): purchaseStateChanged got signedData: {"nonce":5044355212491260364,"orders":[{"notificationId":"android.test.purchased","orderId":"transactionId.android.test.purchased","packageName":"com.kenjidemo.kenjidemo4","productId":"android.test.purchased","purchaseTime":1393844265334,"purchaseState":0}]}
  16. 03-03 19:05:12.020: I/BillingService(12572): purchaseStateChanged got signature:
  17. 03-03 19:05:12.020: I/BillingService(12572): signedData: {"nonce":5044355212491260364,"orders":[{"notificationId":"android.test.purchased","orderId":"transactionId.android.test.purchased","packageName":"com.kenjidemo.kenjidemo4","productId":"android.test.purchased","purchaseTime":1393844265334,"purchaseState":0}]}
  18. 03-03 19:05:12.025: D/AndroidRuntime(12572): Shutting down VM
  19. 03-03 19:05:12.025: W/dalvikvm(12572): threadid=1: thread exiting with uncaught exception (group=0x41cc02a0)
  20. 03-03 19:05:12.035: E/AndroidRuntime(12572): FATAL EXCEPTION: main
  21. 03-03 19:05:12.035: E/AndroidRuntime(12572): java.lang.RuntimeException: Unable to start receiver com.example.mfacesdk3.BillingReceiver: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  22. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at android.app.ActivityThread.handleReceiver(ActivityThread.java:2277)
  23. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at android.app.ActivityThread.access$1500(ActivityThread.java:140)
  24. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
  25. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at android.os.Handler.dispatchMessage(Handler.java:99)
  26. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at android.os.Looper.loop(Looper.java:137)
  27. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at android.app.ActivityThread.main(ActivityThread.java:4898)
  28. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at java.lang.reflect.Method.invokeNative(Native Method)
  29. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at java.lang.reflect.Method.invoke(Method.java:511)
  30. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
  31. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
  32. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at dalvik.system.NativeStart.main(Native Method)
  33. 03-03 19:05:12.035: E/AndroidRuntime(12572): Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  34. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
  35. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at java.util.ArrayList.get(ArrayList.java:304)
  36. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at com.example.mfacesdk3.BillingHelper.verifyPurchase(BillingHelper.java:300)
  37. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at com.example.mfacesdk3.BillingReceiver.purchaseStateChanged(BillingReceiver.java:46)
  38. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at com.example.mfacesdk3.BillingReceiver.onReceive(BillingReceiver.java:28)
  39. 03-03 19:05:12.035: E/AndroidRuntime(12572):         at android.app.ActivityThread.handleReceiver(ActivityThread.java:2270)
  40. 03-03 19:05:12.035: E/AndroidRuntime(12572):         ... 10 more
  41. 03-03 19:05:12.060: D/dalvikvm(12572): GC_CONCURRENT freed 180K, 8% free 12352K/13319K, paused 4ms+3ms, total 23ms
复制代码





欢迎光临 JBTALKS.CC (https://www.jbtalks.cc/) Powered by Discuz! X2.5