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

Android:清单合并失败CoreComponentFactory

元英朗
2023-03-14

清单合并失败:属性Application@AppComponentFactory value=(android.support.v4.app.CoreComponentFactory)来自[com.android.support:support-compat:28.0.0]AndroidManifest.xml:22:18-91

也存在于[androidx.core:core:1.0.0]androidmanifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory)。

建议:将'tools:replace=“android:AppComponentFactory”‘添加到androidManifest.xml:6:5-33:19的元素中以覆盖。

我的代码

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="midhilaj.in">
    <uses-permission android:name="android.permission.INTERNET" />
    <application

        android:name=".App"
        android:debuggable="false"
        tools:replace="android:icon "
        android:roundIcon="@mipmap/ic_launcher_round"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:ignore="HardcodedDebugMode,GoogleAppIndexingWarning">
        <meta-data android:name="DATABASE" android:value="dataa.db" />
        <meta-data android:name="VERSION" android:value="2" />
        <meta-data android:name="QUERY_LOG" android:value="true" />
        <meta-data android:name="DOMAIN_PACKAGE_NAME"
            android:value="midhilaj.in" />
        <activity
            android:name=".Registation"
            android:label="@string/app_name"
            android:theme="@style/AppTheme.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>

</manifest>
dependencies {
    implementation 'com.jakewharton:butterknife:10.0.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
    implementation 'com.github.satyan:sugar:1.3'
    implementation 'com.android.support:multidex:1.0.0'
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:design:28.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.firebaseui:firebase-ui-auth:4.1.0'
}

注意删除后已删除错误:

implementation 'com.jakewharton:butterknife:10.0.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'

共有1个答案

单于扬
2023-03-14

我也遇到了同样的问题,经过一些搜索,我在这里找到了这个问题:https://github.com/jakewharton/butterknife/issues/1429

这里库的创建者建议您迁移到androidx或者将库版本降级到兼容的版本。现在我使用以下内容:

    implementation 'com.jakewharton:butterknife:8.8.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.0' 
 类似资料:
  • 我似乎得到了这样的错误:

  • 我得到下面的错误信息。 错误:任务执行失败:app:processDebugManifest。清单合并失败:uses-sdk:minSdkVersion 1不能小于库中声明的版本4[com . Android . support:multi dex:1 . 0 . 1]C:\ Users \ Nitesh \ Downloads \ sun calculator(1)\ sun calculato

  • 错误:任务“:app:ProcessDebugManifest”执行失败。 清单合并失败:来自AndroidManifest.xml:13:9-42的属性application@icon value=(@mipmap/appiconnew)也存在于[com.pnikosis:materialish-progress:1.0]AndroidManifest.xml:13:9-45 value=(@d

  • 我在关于支付网关的项目中遇到了麻烦。根据EBS的指导原则,我将模块导入到我的项目中并进行编译。但是当它构建时,它给我的错误是:`error:execution for task':app:processDebugManifest'。 清单合并失败:来自AndroidManifest.xml:14:9-43的属性application@icon value=(@mipmap/ic_launcher)

  • 我有下一个年级 但当我想构建应用程序时,我会得到下一个日志:

  • 反应原生应用程序未安装在Android 12设备上。在设备上运行应用程序时,它会抛出清单合并失败错误。我看到很多人面临这个问题,在清单中添加“android:导出”可以为他们解决问题,但对我来说,添加“android:导出”后并不能解决问题。 我已将其添加到所有活动,接收器和服务中。也尝试了多个值,但问题仍然存在。我已经遵循了类似问题中提出的所有步骤,但似乎没有一个对我有用。 这些是我已经检查过的