android:exported 需要为 <activity> 明确指定。应用面向 Android 12?

android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12?

我正在开发新的 android 应用程序,当我 运行 项目出现以下错误时 任务:应用程序:processDebugMainManifest 失败

C:\Users\Edgar\AndroidStudioProjects\CreditScore\app\src\main\AndroidManifest.xml Error:
    android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
C:\Users\Edgar\AndroidStudioProjects\CreditScore\app\src\main\AndroidManifest.xml Error:
    android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
C:\Users\Edgar\AndroidStudioProjects\CreditScore\app\src\main\AndroidManifest.xml Error:
    android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.


Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed with multiple errors, see logs

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

低于我的 Android Manifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.yodgorbek.creditscore">
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:name=".MyScoreApp"
        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.CreditScore">
        <activity
            android:name=".ui.MainActivity"
            android:exported="true"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

我尝试过的方法 tools:node="合并" 以及来自以下 link 的其他建议 我想知道我错在哪里

我已经通过将 minsdk 减少到 30

解决了我的问题