question

Sergio Ozaki avatar image
Sergio Ozaki asked

Amazon App Tester does not send onPurchaseResponse

I am trying to test Amazon IAP with App Tester and the onPurchaseResponse is not being sent after calling the purchase method.


Some events are received, for instance, the onPurchaseUpdatesResponse.


I have just downloaded the App Tester, and I am using the in-app-purchasing-2.0.76.jar


I noted the following exception after the purchase method is called:

2020-10-27 16:43:44.580 958-5524/? E/Parcel: Class not found when unmarshalling: com.amazon.sdktestclient.iap.command.IapCommandResponse
    java.lang.ClassNotFoundException: com.amazon.sdktestclient.iap.command.IapCommandResponse
        at java.lang.Class.classForName(Native Method)
        at java.lang.Class.forName(Class.java:454)
        at android.os.Parcel.readParcelableCreator(Parcel.java:3031)
        at android.os.Parcel.readParcelable(Parcel.java:2981)
        at android.os.Parcel.readValue(Parcel.java:2883)
        at android.os.Parcel.readArrayMapInternal(Parcel.java:3261)
        at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
        at android.os.BaseBundle.unparcel(BaseBundle.java:236)
        at android.os.BaseBundle.getString(BaseBundle.java:1160)
        at android.content.Intent.getStringExtra(Intent.java:8548)
        at com.android.server.wm.ActivityStarter.startActivity(ActivityStarter.java:765)
        at com.android.server.wm.ActivityStarter.startActivity(ActivityStarter.java:676)
        at com.android.server.wm.ActivityStarter.startActivityMayWait(ActivityStarter.java:1783)
        at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:607)
        at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1615)
        at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1512)
        at com.android.server.wm.ActivityTaskManagerService.startActivity(ActivityTaskManagerService.java:1466)
        at android.app.IActivityTaskManager$Stub.onTransact(IActivityTaskManager.java:1655)
        at android.os.Binder.execTransactInternal(Binder.java:1056)
        at android.os.Binder.execTransact(Binder.java:1029)
     Caused by: java.lang.ClassNotFoundException: com.amazon.sdktestclient.iap.command.IapCommandResponse
        at java.lang.Class.classForName(Native Method) 
        at java.lang.Class.forName(Class.java:454) 
        at android.os.Parcel.readParcelableCreator(Parcel.java:3031) 
        at android.os.Parcel.readParcelable(Parcel.java:2981) 
        at android.os.Parcel.readValue(Parcel.java:2883) 
        at android.os.Parcel.readArrayMapInternal(Parcel.java:3261) 
        at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292) 
        at android.os.BaseBundle.unparcel(BaseBundle.java:236) 
        at android.os.BaseBundle.getString(BaseBundle.java:1160) 
        at android.content.Intent.getStringExtra(Intent.java:8548) 
        at com.android.server.wm.ActivityStarter.startActivity(ActivityStarter.java:765) 
        at com.android.server.wm.ActivityStarter.startActivity(ActivityStarter.java:676) 
        at com.android.server.wm.ActivityStarter.startActivityMayWait(ActivityStarter.java:1783) 
        at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:607) 
        at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1615) 
        at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1512) 
        at com.android.server.wm.ActivityTaskManagerService.startActivity(ActivityTaskManagerService.java:1466) 
        at android.app.IActivityTaskManager$Stub.onTransact(IActivityTaskManager.java:1655) 
        at android.os.Binder.execTransactInternal(Binder.java:1056) 
        at android.os.Binder.execTransact(Binder.java:1029)
iap
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers