简体   繁体   English

"Xamarin.Forms Naxam Mapbox 在部署到 Android 11 时出现错误"

[英]Xamarin.Forms Naxam Mapbox Getting Error When Deploying To Android 11

I have a Xamarin Forms project that i have included the Naxam Mapbox project into .我有一个 Xamarin Forms 项目,我已将 Naxam Mapbox 项目包含到 . I am able to display the map on all versions of Android before version 11. When i deploy to a device that has Android 11 i get the following error:我能够在版本 11 之前的所有版本的 Android 上显示地图。当我部署到具有 Android 11 的设备时,我收到以下错误:

Java.Lang.SecurityException: 'getDataNetworkTypeForSubscriber'

I solved this problem by downgrading the android target version to 10. If your application does not use android 11 features, then not a bad temporary solution.我通过将 android 目标版本降级到 10 解决了这个问题。如果您的应用程序不使用 android 11 功能,那么临时解决方案也不错。 I solved this problem by downgrading the android target version to 10. If your application does not use android 11 features, then not a bad temporary solution.我通过将 android 目标版本降级到 10 解决了这个问题。如果您的应用程序不使用 android 11 功能,那么临时解决方案也不错。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM