<service android:name=".RecentTaskService"
android:permission="xxx.xxx.xxx"
android:exported="true">
<intent-filter>
<action android:name="xxx.xxx.xxx" />
</intent-filter>
</service>
被绑定的service需要在节点中设置属性exported=true;
如果被绑定service设置了permission:在绑定service时需要声明权限
<permission android:name="xxx.xxx.xxx" />
<uses-permission android:name="xxx.xxx.xxx" />
最后
以上就是欢呼爆米花最近收集整理的关于Not allowed to bind to service Intent 解决办法的全部内容,更多相关Not内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复