AS使用过程中遇到的问题总是多种多样的,每遇到一个,就意味着对Studio的了解加深了一步。
/******************************* 我是正文的分割线 ********************************/
因项目需要接入第三方SDK,于是引入一个Library,于是就抛出了这么一个异常:
遇到这样的提示,首先,点击最后一行的“see complete output in console”来查看详细信息:
看这里的提示,说是在AndroidManifast文件中 的value 和theme和Library 给冲突掉了,
解决办法有两种,第一种,是吧style的名字和icon的名字都重命名一下,
第二种:在<application>中,加一句话:
tools:replace="android:icon, android:theme, android:label"
意思为,替换icon theme label ,使用当前主Module的icon theme label
整体如下: