1

从文档中,它说

To test in-app billing in an application you must install the 
application on an Android-powered device. You cannot use the 
Android emulator to test in-app billing.

但是任何人都成功地测试了 Android x86 VM (http://www.android-x86.org)?

我想虚拟机应该像一个真实的设备一样运行并且应该可以测试?

4

2 回答 2

4

The actual platform doesn't really matter. IAB uses the Android Market/Play store application to provide its services, so if you have that installed and properly working, you will be able to test. If not, you won't. Since the IAB code is platform-independent, you don't really need to test it on all platforms you need to support.

于 2012-06-21T06:40:22.753 回答
1

我找到了这个项目

允许您通过简单地添加库并将请求重定向到存根直接从模拟器中测试应用计费应用程序。

但是我无法将此库与 extras/google/play_billing/ 中的示例代码集成

在示例代码中逐步编写如何集成该项目将非常有用。

于 2012-07-04T08:41:18.137 回答