我正在使用一个使用自己的android:theme的库,因此我在构建时收到以下错误: 错误:(55,9)任务执行失败':contacit:processDebugManifest'。
清单合并失败:来自AndroidManifest.xml的属性应用程序@ theme value =(@ style / Theme.MainTheme):55:9 也出现在com.github.florent37:materialviewpager:1.0.3.2:11:18 value =(@ style / AppTheme) 建议:在AndroidManifest.xml中添加'tools:replace =“android:theme”'到元素:49:5覆盖
我修改了我的应用AndroidManifest.xml,如下所示:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.main"
android:versionCode="19"
android:versionName="2.5" >
...
<application
android:name="com.example.application.MainApplication"
tools:replace="android:theme"
android:allowBackup="true"
android:icon="@drawable/logo_icon"
android:label="@string/app_name"
android:theme="@style/Theme.MainTheme"
>
...
但是,即使我使用了tools:replace
属性,我仍然从Manifest合并中得到同样的错误。有什么想法吗?
答案 0 :(得分:0)
删除tools:replace
并将tools:node="replace"
添加到应用标记。它对我有用。