1

我有在 Android 中工作的 In App Billing:IABv3。

但是,只有在“Play Store”应用程序在后台运行时,它才能正常运行。

如果我终止“Play Store”应用程序,则启动 IAB 将失败并出现以下错误:

W/ActivityManager( 1188): Unable to start service Intent { act=com.android.vending.billing.InAppBillingService.BIND pkg=com.android.vending } U=0: not found

我遵循了示例实现,我在清单中添加了计费权限。我的项目源中也有aidl文件。

我以前从未注意到这种奇怪的行为(到目前为止,我只是在 Android 3.x 和 4.x 设备上进行测试。但现在在 Android 6.0.1 设备上,我收到了这个错误。)

使用“Google Play 结算库”第 5 版。

目标 SDK API 21。

SDK 工具第 25 版。

4

0 回答 0