首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我在我的报表文件中发现了这些错误。有解决办法吗?

我在我的报表文件中发现了这些错误。有解决办法吗?
EN

Stack Overflow用户
提问于 2022-03-12 11:04:13
回答 1查看 119关注 0票数 0

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

RestfulAPI.app主清单(此文件)

代码语言:javascript
复制
    <?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.restfulapi">

    <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.RestfulAPI"
        tools:replace="android:appComponentFactory">
        <activity
            android:name=".DataViewActivity"
          />
        <activity
            android:name=".MainActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

</manifest>
EN

回答 1

Stack Overflow用户

发布于 2022-03-12 11:36:55

应用程序标记中添加这一行。

代码语言:javascript
复制
tools:replace="android:appComponentFactory"
android:appComponentFactory="@string/application _name"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71449144

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档