Hello,
For this issue, we could try the following steps to resolve it.
Step1.
Referring to the official documentation Working with the Android Manifest., we should use IntentFilter property in Activity.cs
and Service.cs
files instead of modifying AndroidManifest.xml
.
AndroidManifest.xml is a powerful file in the Android platform that allows you to describe the functionality and requirements of your application to Android. However, working with it is not easy. Xamarin.Android helps to minimize this difficulty by allowing you to add custom attributes to your classes, which will then be used to automatically generate the manifest for you. Our goal is that 99% of our users should never need to manually modify AndroidManifest.xml.
Step2.
If the error occurred again, we should look at the resulting AndroidManifest
in the obj/Debug/Android
folder and see what is actually being exported.
It was caused by that some plugins did not support Android 12.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.