Issue when uploading to play store

Choy Wing Lun 1 Reputation point
2022-10-16T01:49:13.937+00:00

When I try to upload my app to play store, it is showing (You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported).

My App is targeting android 12, and I have already set android:exported in my manifest. Anyone knowing what still need to fixed? There is some detailed error about this, but I believe it is from third party library.

250718-issuejpg.jpg

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2022-10-17T02:51:10.46+00:00

    Hello,

    My App is targeting android 12, and I have already set android:exported in my manifest. Anyone knowing what still need to fixed? There is some detailed error about this, but I believe it is from third party library.

    You could look at the resulting AndroidManifest in the obj/Debug/Android folder and see which third party libraries are actually exported.

    In addition, it is recommend to 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.
    Referred from Working with the Android Manifest.

    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.


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.