简体   繁体   中英

Android IAB. Error - Authentication is required. You need to sign into your Google Account

In the Android > Sample app > Trivial Drive when running the app I get the following when doing an IAP:

Error - Authentication is required. You need to sign into your Google Account

I've switched to a separate account on my phone with the testing account (ie the testing email address I've specified in the Developer Console) and followed all the steps here:

https://android.stackexchange.com/questions/20369/getting-authentication-is-required-when-trying-to-access-the-play-store

but no joy.

Any further suggestions?

==== UPDATE

I've since blasted away all Google Accounts on my phone and now have just 1 account - ie the Testing account.

And I've tried everything here: https://android.stackexchange.com/questions/20369/getting-authentication-is-required-when-trying-to-access-the-play-store

I believe that Google now requires that the app is published as alpha version and a Google group specifically for testing is set up. I wasn't able to find this information in the official documentation (which means that Google probably didn't update it in quite some time), but here: https://help.gamesalad.com/hc/en-us/articles/203536123-7-6-In-App-Purchases-IAP-for-Google-Play

After going through all of the answers up here - make sure you activate the products. I facepalmed soo hard when I saw I hadn't activated mine.

I was having this issue and found a seperate solution to this problem.

In app purchases in Google Play have unique names, and in Google Play, they must all be lower case and no spaces. Therefore if your IAP is called 'myproduct' but you call the store and ask for 'MyProduct' somewhat strangely, you will see this error message:

'Authentication is required. You need to sign into your Google Account.'

The error message is so misleading.

I have the same issue previously. Go to your google developer console and make sure your app is PUBLISHED to any version(alpha, beta or prod). Then, the In app purchase will work :)

Check your product status , most probably it is in " inactive " state. Just change its state to " active " and if everything mentioned above is done. It will work.

First remove all google accounts second clear data of google play service. Third if you can uninstall update that do it or just restard the phone

Try this,

first, Remove all google accounts. second, Clear Data of google play service. third, if you can uninstall update that do it or just restart the phone.

i had the same error and i have found this solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM