首页 文章

清单合并失败:属性应用程序@ theme

提问于
浏览
1

我正在尝试使用this ProgressWheel librery,但是在运行proyect后我遇到了这个错误 .

错误:任务':app:processDebugManifest'的执行失败 . 清单合并失败:来自AndroidManifest.xml的属性应用程序@ theme value =(@ style / AppTheme):11:9-40也出现在[com.github.Todd-Davies:ProgressWheel:1.2] AndroidManifest.xml:13:9 -56 value =(@ android:style / Theme.NoTitleBar) . 建议:在AndroidManifest.xml:5:5-23:19中添加'tools:replace =“android:theme”'来覆盖 .

这是我的表现

<?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>

有关如何解决它的任何想法?

1 回答

  • 8

    有关如何解决它的任何想法?

    按照错误消息中给出的说明进行操作:

    建议:在AndroidManifest.xml:5:5-23:19中添加'tools:replace =“android:theme”'来覆盖 .

    换句话说,将 tools:replace="android:theme" 添加到 <application> 元素 .

    或者,切换到其他库 .

相关问题