[英]Unable to start service com.android.vending.billing.IMarketBillingService
I'm trying start com.android.vending.billing.IMarketBillingService service and I received this message. 我正在尝试启动com.android.vending.billing.IMarketBillingService服务,我收到了此消息。 I'm using emulator Android 2.3.3 - API Level 10.
我正在使用模拟器Android 2.3.3 - API Level 10。
03-23 15:04:53.535: WARN/ActivityManager(61): Unable to start service Intent { act=com.android.vending.billing.IMarketBillingService }: not found
03-23 15:04:53.535: ERROR/BillingService(416): Could not bind to service.
Code: 码:
private boolean bindToMarketBillingService() {
try {
if (Consts.DEBUG) {
Log.i(TAG, "binding to Market billing service");
}
boolean bindResult = bindService(
new Intent(IMarketBillingService.class.getName()),
this,
Context.BIND_AUTO_CREATE);
if (bindResult) {
return true;
} else {
Log.e(TAG, "Could not bind to service.");
}
} catch (SecurityException e) {
Log.e(TAG, "Security exception: " + e);
}
return false;
}
have you added the IMarketBillingService.aidl to your package and then rebuilt your project? 您是否已将IMarketBillingService.aidl添加到您的包中,然后重建您的项目?
If you have try this: 如果你试试这个:
boolean bindResult = bindService(new Intent("com.android.vending.billing.MarketBillingService.BIND"), this, Context.BIND_AUTO_CREATE);
worked for me 为我工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.