Take the 2-minute tour ×

I'm trying to test inapp purchase, but every time when I deploy with eclipse (signed with the debug key), it says: "This version of the application is not configured for Market billing. Check the help center for more information." When I export a release version of the apk (signed with my private key), it's ok. My question is this: I have to export an apk, upload it to the device, to run a test? That's a LOT of time wasted, and I cannot run tests either. Am I missing something?

share|improve this question

3 Answers 3

up vote 2 down vote accepted

Exporting signed APKs through ADT in Eclipse is indeed rather cumbersome. A much more effective build mechanism is to build debug or release versions through an Ant build script (see "Building and Running from the Command Line"). I have added some Ant targets to install those freshly built APKs immediately onto the attached device.

If you create a new project through android create project (see "Managing Projects from the Command Line"), you'll get a basic build.xml to get started with.

share|improve this answer
With ANT it's OK. I build apx. 5 times a day, and I found it fast enough. –  gmate Aug 18 '11 at 13:12

You can buy the test product 'android.test.purchased' using a debug version. For a 'real' product, you need to sign with the release key and upload a draft version to market. To save time you should use the test product until you get your app working, and use the real product ID for final testing only. Check out the documentation for more details

share|improve this answer
This is useful too as it clears up the main difference between 'real' products and the static responses. –  gmate Aug 18 '11 at 13:13
If you use the 'android.test.purchased' next time you query the inventory you will receive an error, as the 'android.test.purchased' is broken and it does not pass the validation process. –  GaRRaPeTa Jun 25 at 11:05
If you looked at the documentation, I would see that now they require you to upload the app to the alpha or beta channel in order to test IAP. –  Nikolay Elenkov Jul 8 at 1:09

I had the same problem and had to install the app from the market itself before it worked. Sideloading the same APK didn't work for some reason.

share|improve this answer

Your Answer


