Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android In-App Billing error You need to sign into your google account

I am implementing in-app purchase using https://github.com/anjlab/android-inapp-billing-v3 . But while in app pop up open it shows "Error Authentication is required.You need to sign into your google account". I tested using different devices as same result.

like image 729
Musafir Ali Avatar asked Jan 06 '15 11:01

Musafir Ali


People also ask

How do I fix Google sign in error on Android?

Uninstall and reinstall the app on your device (even if you have the latest version). Make sure you're using a Google Account to sign in. Try adding your Google Account to your mobile device using the instructions for Android devices.

How do I fix in-app purchase error on Android?

Restart the device Tap Power off or Restart (depending on your device this text may be different). If needed, hold down the power button again to turn the device back on. Wait for the device to start back up. Re-open the app or game and check if the in-app purchase has been delivered.


2 Answers

Improtant ! I've spent a lot of time trying to find out why I'm getting error "Error Authentication is required.You need to sign into your google account". And after a lot of hours I found out - I was trying to access wrong item id from the console. In the developer console subscription item had id "premium" and I've tried to access "premium_version" item. Stupid mistake but error from google is absolutely not informative. Hope this helps

like image 101
Alex Perevozchykov Avatar answered Oct 19 '22 03:10

Alex Perevozchykov


In my case what happened was that the right product was all set up at console, however it wasn't activated.

like image 25
Rafael Nobre Avatar answered Oct 19 '22 05:10

Rafael Nobre