android L 出现的问题IllegalArgumentException: Service Intent must be explicit: Intent
来源:互联网 发布:linux 下except用法 编辑:程序博客网 时间:2024/06/08 09:38
转载地址:https://stackoverflow.com/questions/24480069/google-in-app-billing-illegalargumentexception-service-intent-must-be-explicit
现象描述:IllegalArgumentException: Service Intent must be explicit: Intent
原因:android L 在进行远程服务注册时更改了方法
I was getting the same error from older Google Cloud Messaging setup code. The simplest fix appears to be changing
private Intent getExplicitIapIntent() { PackageManager pm = mContext.getPackageManager(); Intent implicitIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND"); List<ResolveInfo> resolveInfos = pm.queryIntentServices(implicitIntent, 0); // Is somebody else trying to intercept our IAP call? if (resolveInfos == null || resolveInfos.size() != 1) { return null; } ResolveInfo serviceInfo = resolveInfos.get(0); String packageName = serviceInfo.serviceInfo.packageName; String className = serviceInfo.serviceInfo.name; ComponentName component = new ComponentName(packageName, className); Intent iapIntent = new Intent(); iapIntent.setComponent(component); return iapIntent; }其中"com.android.vending.billing.InAppBillingService.BIND"为Service 在AndroidManifest.xml 的Action值
0 0
- android L 出现的问题IllegalArgumentException: Service Intent must be explicit: Intent
- android L java.lang.IllegalArgumentException: Service Intent must be explicit隐式意图找不到错误解决
- IllegalArgumentException:Service Intent must be explicit
- IllegalArgumentException: Service Intent must be explicit
- Android报错IllegalArgumentException: Service Intent must be explicit
- java.lang.IllegalArgumentException: Service Intent must be explicit: Intent {
- service intent must be explicit:intent问题的解决
- Android报错:Caused by: java.lang.IllegalArgumentException: Service Intent must be explicit: Intent
- bindService的时候出现Service Intent must be explicit
- Android 5.0 Service Intent must be explicit
- Android 5.0 Service Intent must be explicit
- Android 5.0 Service Intent must be explicit
- Android “Service Intent must be explicit”解决办法
- java.lang.IllegalArgumentException: Service Intent must be explicit
- java.lang.IllegalArgumentException: Service Intent must be explicit
- java.lang.IllegalArgumentException: Service Intent must be explicit解决方法
- java.lang.IllegalArgumentException: Service Intent must be explicit异常说明
- Caused by: java.lang.IllegalArgumentException: Service Intent must be explicit:
- LIBSVM的使用方法
- 《算法竞赛入门经典》习题2-5 统计(stat)
- Python处理海量数据的实战研究
- 注册机源码
- Android的Theme的设置和Style的使用
- android L 出现的问题IllegalArgumentException: Service Intent must be explicit: Intent
- Restoring Table Statistics (Doc ID 452011.1)
- 使用 Eclipse 生成 javadoc
- DataTable存储XML信息时,列名相同时解决方法
- IOS学习-区别scrollViewDidEndDragging和scrollViewDidEndDecelerating
- 读取 SQL 脚本并执行
- OC基础 便利构造器 继承,
- myeclipse手动安装插件-自用
- jQuery操作Select