Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute application@theme
value=(@style/AppTheme) from AndroidManifest.xml:10:9-40
is also present at
value=(@android:style/Theme.Light.NoTitleBar).
Suggestion: add 'tools:replace="android:theme"' to <application>
element at AndroidManifest.xml:5:5-20:19 to override.
原因:
AS的Gradle插件默认会启用Manifest Merger Tool,若Library项目中也定义了与主项目相同的属性(例如默认生成的android:icon和android:theme),则此时会合并失败,并报上面的错误。
解决:
1. 我自己试的,,在Library项目中,引用了和住项目一样的主题,,就解决了..按照网上的其他的方法试了没有用,,不知道为什么..