【发布时间】:2016-12-23 13:52:02
【问题描述】:
我正在尝试使用this ProgressWheel librery,但是在运行项目后我遇到了这个错误。
错误:任务 ':app:processDebugManifest' 执行失败。
清单合并失败:AndroidManifest.xml:11:9-40 中的属性 application@theme value=(@style/AppTheme) 也是 出现在 [com.github.Todd-Davies:ProgressWheel:1.2] AndroidManifest.xml:13:9-56 值=(@android:style/Theme.NoTitleBar)。 建议:添加 'tools:replace="android:theme"' 到 AndroidManifest.xml:5:5-23:19 中的元素进行覆盖。
这是我的清单
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.anda.soft.apppresentation">
<application
android:name=".di.App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".ui.activities.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="io.fabric.ApiKey"
android:value="xxxxxxxxxxxxxxx"
/>
</application>
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
还有我的 style.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
知道如何解决吗?
【问题讨论】:
标签: android android-manifest android-styles