因为给Service设置了优先级报错:
<service android:name=".MyService">
<intent-filter android:priority="1000">
</intent-filter>
</service>
百度查找到:
经过测试之后,如果要给service设置优先级,在eclpse里面的SDK版本比较底,所以没有报错,到AS里面用的版本是5.0之后的,所以就报错,可能是5.0之后新加的特性--------->必须设置指定的action-----!不然就此错:【其他人反馈的重点】
解决:
<service android:name=".MyService">
<intent-filter android:priority="1000">
<action android:name="xx.MyService"/>
</intent-filter>
</service>
参考:Manifest merger failed with multiple errors, see logs 清单文件报错解决方案_木了个易杨的博客-优快云博客
本文解决了一个关于在Android中为Service设置优先级时遇到的问题。在Android Studio使用5.0及以上版本时,若要为Service设置优先级,必须同时指定一个action,否则会报错。文章提供了修改后的清单文件配置示例。
7628

被折叠的 条评论
为什么被折叠?



