【发布时间】:2022-10-06 09:54:48
【问题描述】:
我正在使用 Xamarin 表单,并且根据 Google Play 商店要求 (https://developer.android.com/google/play/requirements/target-sdk) 需要将 Android SDK 级别从 11 升级到 12。我已将“导出”标志添加到所有活动、服务和应用程序中使用的接收器。还更新了 PendingIntent 标志的可变性。但是,当我运行应用程序时,我遇到了错误。
~/Droid/obj/Debug/AndroidManifest.xml(5,5):错误 AMM0000:/~Droid/obj/Debug/lp/95/jl/AndroidManifest.xml 警告: 命名空间 \'com.google.android.gms.analytics\' 用于:AndroidManifest.xml、AndroidManifest.xml。 android:exported 需要为元素 <service#crc643a9353f6fb65c51a.FirebaseService> 显式指定。当相应组件定义了 Intent 过滤器时,面向 Android 12 及更高版本的应用需要为
android:exported指定显式值。有关详细信息,请参阅https://developer.android.com/guide/topics/manifest/activity-element#exported。 目录 \'obj/Debug/lp/95\' 来自 \'Xamarin.GooglePlayServices.Analytics.Impl.dll\'。/~Droid/obj/Debug/AndroidManifest.xml(5,5): Error AMM0000: android:exported needs to be explicitly specified for element <service#crc643a9353f6fb65c51a.FirebaseIdService>. Apps targeting Android 12 and higher are required to specify an explicit value for
android:exportedwhen the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details./~Droid/obj/Debug/AndroidManifest.xml(5,5): Error AMM0000: android:exported needs to be explicitly specified for element <receiver#crc64df999be563077fc4.BootReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for
android:exportedwhen the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.以下是我的应用程序中使用的 Nuget 包。
有关如何解决此问题的任何建议?
-
请不要将错误消息作为图像发布
-
更新了错误消息
标签: c# android xamarin xamarin.forms xamarin.android