[IAP - Android] error

I’m trying a test with : android.test.purchased

I got this crash on sdkbox::IAP::purchase

In-app billing error: Unable to buy item, Error response: 7:Item Already Owned
Ending async operation: launchPurchaseFlow
Shutting down VM
FATAL EXCEPTION: main

java.lang.NullPointerException: Attempt to invoke virtual method ‘com.sdkbox.plugin.util.iap.Purchase com.sdkbox.plugin.util.iap.Inventory.getPurchase(java.lang.String)’ on a null object reference
at com.sdkbox.plugin.SDKBoxIAPGooglePlay$6.onIabPurchaseFinished(SDKBoxIAPGooglePlay.java:465)
at com.sdkbox.plugin.util.iap.IabHelper.launchPurchaseFlow(IabHelper.java:392)
at com.sdkbox.plugin.util.iap.IabHelper.launchPurchaseFlow(IabHelper.java:338)
at com.sdkbox.plugin.util.iap.IabHelper.launchPurchaseFlow(IabHelper.java:333)
at com.sdkbox.plugin.SDKBoxIAPGooglePlay$3.run(SDKBoxIAPGooglePlay.java:214)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5223)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)

That looks like a bug, we’ll look into that

Although using the google testing product for testing is not recommend, feels weird to say that, but it has problems consuming it.

If you want to test IAP, I strongly recommend setting up IAP for your own app, I wrote a tutorial for it.

Thanks nite!