开发者

Test inapp purchase with debug key

开发者 https://www.devze.com 2023-03-27 20:15 出处:网络
I\'m trying to test inapp purchase, but every time when I deploy with eclipse (signed with the debug key), it says:

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?


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


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消