问题
I´m testing my in-app billing and followed the following steps:
Uploaded APK to the Market, created In-App items and published them (did not publish the app itself), exported a signed APK and installed that on a different device then my own (so there is a different primary account), but when I click on the button to purchase an item, it shows the itemname in a different view, but after a loading widget it gives the error:
How to resolve “The item you were attempting to purchase could not be found
I couldn´t find the solution on stackoverflow, can anyone give me more ideas?
Thanks
回答1:
If the app is not published, then the account you are using must be declared as a test account, check it here:
Setting Test accounts.
回答2:
This error is telling that you don't added the item on Google play developer console under in-app product
Steps to add item
- Login with Developer account in Google Play Developer Console.
- Select the You App.
- From left side Select In-app Products
- Click on "+ Add new product" button
- Add new Product window in open. Now enter product id and select Item Type
- Click on "Continue"
- Now new window is open. Now enter Title,Description,Price
- Click on Save or Activate button
Note : If you click on Save button than the item in only save on your in-app products and it's still not active to use. you have to manually activate the item and wait for 2 or 3 hours to be active.
Most important : If you want to activate your item immediate than you have to click on Activate button at step 8. it will activate you item immediate and save it automatically.
回答3:
Add your testers' accounts across all apps by following how to User-test a Google Play Billing app instructions.
来源:https://stackoverflow.com/questions/9743429/how-to-resolve-the-item-you-were-attempting-to-purchase-could-not-be-found