android-inapp-billing-v3
android-inapp-billing-v3 copied to clipboard
OnBillingError error 110 after successful Subscription
I am now still on alpha version of in-app products but i am trying to subscribe to item but i am getting error 110 although Subscription is done successfully
Any advises
I have the same issue, here's the log
onBillingError - i=110 throwable=java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference"
@andrew-sirenko do you have a complete stacktrace? What you've presented is virtually useless.
@autonomousapps
2019-01-22 13:44:33.973 1058-1058/? E/iabv3: Error in handleActivityResult
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:116)
at org.json.JSONTokener.nextValue(JSONTokener.java:94)
at org.json.JSONObject.
E/[main] MyActivity: IAP | some error occurred. See Constants class for more details: 110, java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
--------- beginning of system
I have totally the same implementation on the test project, everything is the same and there is no problem with that.
@autonomousapps
The problem is in the method handleActivityResult link to the file: click line number 961
Hi @SashaKhyzhun , I'm afraid I no longer have time to assist with this project.
Same error occurs, Do we have any detailed documentation
@autonomousapps @SaadBilal Okay, I figured out. After the researching I get it.
The problem was in the google play cache. IDK what is goin' on their side, but the factory reset fixed my problem. I know, it was too desperate a step, but anyway it helped.
====================================
My situation:
I had a couple of accounts on my phone. And also, I had a couple of cards there. plus a mess with google account: someone is the owner, someone is a tester, etc.
====================================
The main goal to fix this issue is clearing your google account's cache. How to:
- Go to: Settings –> Application Manager –> Google Play Store –> Force Stop.
- Settings –> Application Manager –> Google Play Store –> Clear Data.
- Settings –> Application Manager –> Google Play Store –> Clear Cache.
- Look for Google Service Framework (Google Play Services).
- Now Clear Data and Clear Cache.
- Now you can use PlayStore without getting any kind of error.
- Now Reboot your device and open Google play store.
If it doesn't work for you - google how to do it and search another way.
Call billingProcessor.loadOwnedPurchasesFromGoogle(); before handleActivityResult gets called. For example: in onCreate or onResume.
This error also happens if you try to "purchase" when you should be "subscribe"-ing!