Xamarin: Issue when TargetSdkVersion set to API 31 in manifest

Wong Wei Loon 11 Reputation points
2022-05-04T10:10:46.38+00:00

By refer to Xamarin.Android 12.0 Release Notes, I set TargetFramework to Android 12 and I able to deploy project without any problem. However, I encountered following error when I set android:targetSdkVersion to API 31 in android manifest.

ADB0010: Mono.AndroidTools.InstallFailedException: Unexpected install output: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl204773411.tmp/base.apk (at Binary XML file line #84): com.urbanairship.accengage.PackageUpdatedReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]

This happens only when android:targetSdkVersion set to 31 and I already added android:exported="true" to MainActivity class and classes that use intent filters. Could anyone advice me how to resolve this?

Developer technologies .NET Xamarin
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-05-05T06:06:05.197+00:00

    Hello,​

    If you install other nugget packages, please update them to the latest.

    Best Regards,

    Leon Lu


    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.