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
-
Go to your project folder and open AndroidManifest.xml file
-
Add the below code in activity
android:exported="true"
-
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)]