错误:工具:替换在第8行指定的属性android:appComponentFactory,但没有新的值指定的RestfulAPI.app主清单(此文件),第7行错误验证失败,退出
RestfulAPI.app主清单(此文件)
<?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>发布于 2022-03-12 11:36:55
在应用程序标记中添加这一行。
tools:replace="android:appComponentFactory"
android:appComponentFactory="@string/application _name"https://stackoverflow.com/questions/71449144
复制相似问题