简体   繁体   中英

Android / Google Play in-app purchase "Item unavailable in your country"

I'm trying to test the in-app purchase of a consumable item on Android, but I'm unable to do so, as the item appears as being unavailable in my country:

在此处输入图像描述

This only happens when I'm testing on a device connected to Android Studio (which I need to be able to do) - if I instead download the app onto the device, the consumable item appears normally, ie as being available. Some details:

  • I'm testing on a physical device running Android version 6.0.1
  • That device is running the latest version of the Google Play application
  • I'm testing with a user that has been set up both as a track tester and a license tester, and that is also currently signed in on the device
  • I've made the app available in all available 177 countries and regions
  • The app does not have a production release, it's only available on the closed testing track

TL;DR: Upload to the Internal Test track and make sure it has the highest version code

I was having this issue for a few days, and also tried numerous things, but to no avail.. I uploaded my app bundle to a Closed Testing track in the Play Store, which did not solve the problem. After countless other methods, I eventually tried to upload a bundle to the Internal Testing track, which immediately solved the issue and allowed me to use test cards again.

If you have uploaded the build from the closed track, please ensure that you have accepted the test invitation from the invited email or it will show this error.

Step 1: Go to Release -> Testing -> Closed Testing

在此处输入图像描述

Step 2: Click on Manage Track

Step 3: Click on Testers tab

在此处输入图像描述

Step 4: Scroll to the bottom and you will see 2 options. Copy the link for web and open the link in your phone or browser with the test email you want to test.

在此处输入图像描述

Step 5: When you open the link you will have an option to Become A Tester. Click on that and then you are good to go.

在此处输入图像描述

I just solved by becoming internal tester via https://play.google.com/apps/internaltest/*** . Hope this helps.

(This answer would be a comment but I couldn't add it sorry)

The solution in my case was to select the app in the Google Play Console, then go to Release > Production > Countries/regions , and add the countries/regions there. Having the countries/regions selected in the closed/internal track only is not sufficient. It seems this is necessary regardless of whether one actually has a production release or not - again, in my case, I did not. It took maybe 10-20 mins after I made the update until I stopped seeing the issue.

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