JavaProxyThrowable System.NullReferenceException while using maps ImageryLayer

Hi, when i'm trying to add

<maps:ImageryLayer LayerType="Bing" BingMapKey="{StaticResource ApiKey}"/>

To my MainView.xaml i'm gettin:

JavaProxyThrowable: System.NullReferenceException: Object reference not set to instance of any object
[...] at
com.android.internal.os.Zygotelnit.main(Zygotelnit.java:954)

if I comment maps:ImageryLayer application runs without throwing exception so problem is with ImageryLayer

I have xiaomi poco x5 with android 13


1 Reply

VO Vishal Omprasad Syncfusion Team November 6, 2023 11:51 AM UTC

Hi Daniel,

Based on the shared details, we have checked the reported query “Null Reference Exception when using ImageryLayer” using your shared code snippet, but we are unable to replicate the reported scenario from our end. We have checked in both the android simulator and android physical device. We have shared the tested sample below for your reference.

Tested real device details: Redmi Note 9 (with Android 11)

Please check our sample and let us know if you are still facing the same issue. If not, please modify our sample based on your scenario and revert us back with the following details, which would help us to check on it and provide you a better solution as soon as possible,

  • Share the issue replication video and replication steps.

  • Share the issue reproducible sample.

Regards,

Vishal O.


Attachment: MapBing_b5e42224.zip

Loader.
Up arrow icon