Xamarin项目从Android 11更新到Android 13

kuhbmx9i  于 11个月前  发布在  Android
关注(0)|答案(1)|浏览(131)

由于Android 11已经过时,我想将其更新为13,因此使用Visual Studio Communnity,我试图更新项目,但当我尝试将其存档时,我会收到此错误:

AMM0000:
    android:exported needs to be explicitly specified for element <service#crc64a934e6823fae7e50.EmplealiaFirebaseIIDService>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

字符串
还修改了Proyecto.Android/Properties目录下“AndroidManifest.xml”中的属性
试图改变其他清单,我认为他们自动生成时,编译或存档项目,并没有工作,我猜

u4vypkhs

u4vypkhs1#

好吧,很明显,如果你使用firebase消息传递和那些东西,你必须在. FirebaseIIDService.cs和. FirebaseIIDService.cs类中进行更改。如果你有这些类,你可能必须在[Service]标记中添加导出值[Service(Exported = false)](如果需要,将其设置为true)。这样,当试图存档时,生成的发布清单将在标记中包含导出值。

相关问题