当前位置: 首页 > 知识库问答 >
问题:

清单合并失败:属性application@theme

莫振
2023-03-14

清单合并失败:来自AndroidManifest.xml:11:9-40的属性application@theme value=(@style/apptheme)也出现在[com.github.todd-davies:ProgressWheel:1.2]AndroidManifest.xml:13:9-56value=(@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>

共有1个答案

朱风史
2023-03-14

有什么办法解决吗?

按照错误消息中给您的说明操作:

建议:将'tools:replace=“android:theme”‘添加到androidmanifest.xml:5:5-23:19的元素中,以重写。

 类似资料:
  • 所有这些都很好,但我正在尝试添加这个库https://github.com/wdullaer/MaterialDateTimePicker 突然,当我同步我的分级时,它给了我这个错误 即使我把这个建议加在我的清单上 我无法完成它,因为现在我得到了这个错误 编辑-解决方案:感谢所有的btw,所以降级库是可以的,但它给了我这个错误 关于不同版本支持的错误(由于我的级别,不能直接放,抱歉) 然后我做了一

  • 当我使用构建Gradle时,我得到以下错误。请帮我解决这个问题。 错误消息:清单合并失败:[com.android.support:support-compat:28.0.0]AndroidManifest.xml:22:18-91中的属性application@AppComponentFactory value=(Android.support.v4.app.CoreComponentFacto

  • 我将遵循以下教程:https://www.youtube.com/watch?v=xtElLuzjA0U 我使用Android Studio 3.2.1-每当我实现实现'me.zhanghai.android.materialprogressbar:库:1.6.1'我得到这个错误: 当我第一次编写本教程时,所有内容都已编译,我能够获得进度条,但当我尝试调试和构建时,它崩溃了。现在,我的第二次,实现

  • 问题内容: 我正在尝试在我的项目中添加Firebase,但是当我实现和时。 (这是错误) } 另一个gradle文件: 显示的错误: 不能合并使用groupId com.android.support和androidx。*的依赖关系,但发现IdeMavenCoordinates {myGroupId =’com.android.support’,myArtifactId =’cardview-v7

  • 我已经尝试了多个网站上的所有解决方案,似乎没有任何东西可以修复它。这是我每次尝试运行时收到的错误。我已经修了一个多星期了。 清单文件生成.Gradle 我希望项目能够运行,但每次尝试都得到相同的错误,即使是在遵循其建议时也是如此

  • 在中将和设置为false后,上述错误得以解决,但我得到的错误如下:错误:清单合并失败:来自[com.android.support:support-compat:28.0.0]androidmanifest.xml:22:18-91的属性application@AppComponentFactory value=(android.support.v4.app.CoreComponentFactor