【问题标题】:Manifest merger failed with multiple errors, see logs error in Android Studio清单合并失败并出现多个错误,请参阅 Android Studio 中的日志错误
【发布时间】:2021-08-11 17:38:59
【问题描述】:
<?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="com.example.news">

<uses-permission android:name="android.permission.INTERNET" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/Theme.News"
    tools:replace="android:appComponentFactory">
    <activity android:name=".SplashActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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

</manifest>

这里是合并清单错误行

合并错误: 错误:工具:在第 8 行为属性 android:appComponentFactory 指定了替换,但没有指定新值 News.app 主清单(此文件),第 7 行 错误:验证失败,正在退出 News.app 主清单(此文件)

【问题讨论】:

    标签: java android xml


    【解决方案1】:

    从应用程序标签tools:replace="android:appComponentFactory"中删除这一行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-04-17
      • 1970-01-01
      • 2018-12-10
      • 1970-01-01
      • 1970-01-01
      • 2021-12-09
      • 1970-01-01
      相关资源
      最近更新 更多