0

I am trying to purchase using a beta tester but i am getting this error. enter image description here

This is an error that shows in google play window, after passing initial validations and after the user press subscribe button, so i guess it is not an code or configuration error.

Anyway i checked this link https://stackoverflow.com/a/22469253/2700303 and also downloaded the app from the store.

I check the "Learn more" link that comes with the error but nothing on that troubleshooting page helped. The account used as a valid and active pay method. I am running on a simulator, but google play comes with it for a reason, so i discard that also. The rest of the suggestions say to use other device. My simulator is running API 28 so should be good enough.

MiguelSlv
  • 14,067
  • 15
  • 102
  • 169

1 Answers1

1
  • In-app purchase must be tested with production build on real device.

Steps

  1. Generate release build from Android studio.
  2. Uninstall debug app from your device, or use adb uninstall.

adb uninstall {yourdomain}.{yourpackagename}

  1. Install your release version to your device.

adb install app-release.apk

Update: Check this answer for more details.

Update 2 :Please read more about Test Google Play Billing

Khaled Lela
  • 7,831
  • 6
  • 45
  • 73
  • "In-app purchase must be tested with production build on real device." is not accurate. I do purchases from a simulator device. Check https://stackoverflow.com/a/41176362/2700303 – MiguelSlv Sep 06 '18 at 00:47
  • @Check my update answer update you will that it reference to the same question that you mentioned. – Khaled Lela Sep 06 '18 at 08:12
  • You point to the question and the question have different answers. I pointed to a specific answer that shows how to test on a device simulator. And i confirm that can be done because i am testing purchases on the simulator successfully now. – MiguelSlv Sep 06 '18 at 10:33
  • @ByteArtisan According to Google Doc, **You can test on any Android-powered hardware device running Android 1.6 or higher.**, Please read [Test Google Play Billing](https://developer.android.com/google/play/billing/billing_testing) – Khaled Lela Sep 06 '18 at 12:50