工具:替换在第11行为属性android:appComponentFactory指定的属性,但未为应用主清单(此文件)的第10行指定新值

Hocine Djouamaa

在构建项目时,出现以下错误:

合并错误:错误:在属性:android:appComponentFactory的行:11处指定的tools:replace,但未在应用主清单(此文件)的第10行中指定新值

错误:验证失败,退出应用程序主清单(此文件)

这是我的清单:

<?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="org.apoce.app">

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


    <application
        android:name="org.apoce.app.MyApplication"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="false"
        android:theme="@style/AppTheme.NoActionBar"
        tools:replace="android:appComponentFactory">

        <!--activities-->
        <activity
            android:name="org.apoce.app.SplashActivity"
            android:theme="@style/SplashTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
...

我能做些什么来解决这个问题

德赛

错误说

在第11行为属性android:appComponentFactory指定的tools:replace,但未指定新值

这意味着您已用替换了当前值,appComponentFactory但没有为其提供新值。

尝试这个。

tools:replace="android:appComponentFactory"
android:appComponentFactory="@string/app_name"

相似的问题:API 28(P)的Android设计支持库不起作用

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章