Hello,
Welcome to our Microsoft Q&A platform!
Which Linker and code shrinker did you set?
Please set Linker to none, then release your application, if it works. If the Linker set to None, then you can release your application, If this issue disappear, because Linker
are excluding com.google.android.gms.ads.MobileAdsInitProvider
And if code shrinker to ‘R8’, please enable the ProGuard. Next, you can either let the Xamarin.Android build process use a default ProGuard configuration file, or you can create your own custom configuration file for ProGuard to use.
Add follow code to your custom configuration file for ProGuard.
\-keep public class com.google.android.gms.ads.MobileAdsInitProvider
If you want to set Linker option to Sdk Assemblies Only
. You need to instruct it to keep the code that shouldn't be stripped out. You can see this thread
If you want to keep
Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
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.