Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]

Solution 1:

In AndroidManifest.xml add android:exported="true":

<manifest ...>
  <application ...>
    <activity
        android:exported="true"

Solution 2:

Android 12 require you to add a piece of code to your main activity

  1. Go to your project folder and open AndroidManifest.xml file

  2. Add the below code in activity

    android:exported="true"

  3. Example

    <activity
         android:name=".MainActivity"
         android:exported="true"
         android:launchMode="singleTop"
         android:theme="@style/LaunchTheme"
     </activity>
    

Solution 3:

Thanks @rahul-kavati.

For Xamarin/MAUI it is a property on ActivityAttribute, used like this [Activity(Label = "MsalActivity", Exported = true)]