Service Intent must be explicit异常分析
2017-10-26 18:20
417 查看
该异常发生的关键字是:Service Intent must be explicit
Android在升级到5.0系统后会产生这样的崩溃。直接通过action启动service,就会导致这个问题,我们必须指定component或package才能避免这类为题,如下所示:
Intent intent = new Intent(); intent.setAction("your action name"); intent.setPackage(getPackageName); context.startService(intent);
很多第三方的SDK都存在这个问题,只有将需要更新的SDK更新到最新版本才能保证Android5.0系统下的App不会因此崩溃。
相关文章推荐
- java.lang.IllegalArgumentException: Service Intent must be explicit 异常解决
- Android 5.0 禁止使用隐式Intent来启动Service.异常:service intent must be explicit
- java.lang.IllegalArgumentException: Service Intent must be explicit异常说明
- java.lang.IllegalArgumentException: Service Intent must be explicit 异常说明
- 5.0上java.lang.IllegalArgumentException: Service Intent must be explicit异常
- Android-Service Intent must be explicit异常说明
- 解决Android 5.0版本之后出现的异常:Service Intent must be explicit
- 20_ java.lang.IllegalArgumentException: Service Intent must be explicit异常说明
- Service异常:Service Intent must be explicit
- Service Intent must be explicit: Intent 解决
- Service Intent must be explicit: Intent { act=com.example.evalee.aidl }
- java.lang.IllegalArgumentException: Service Intent must be explicit解决方法
- Service组件 Android 5.0中出现的警告:Service Intent must be explicit
- Service Intent must be explicit的解决方法
- Android5.0 startService时崩溃 错误"Service Intent must be explicit"
- Service Intent must be explicit的解决方法
- 使用aidl隐式调用service出现service intent must be explicit 问题的一种解决方法
- 如何解决Android 5.0中出现的警告:Service Intent must be explicit
- java.lang.IllegalArgumentException:Service Intent must be explicit:Intent{act=org.opencv.engine.BIND
- aidl "Service Intent must be explicit"