Exception android.runtime.JavaProxyThrowable System.ArgumentException Value can not be null or empty

Hi,

when I publish my app on playstore I get the following error.

Can you help me? 

Version:34.1.31

thanks a lot!



Your release may not support a 16 KB page size.

While testing this release in the lab, we encountered the following crash on a device compatible with a 16 KB page size:

android.runtime.JavaProxyThrowable: [System.ArgumentException]: Value can not be null or empty.

To avoid crashes and meet the 16 KB page size requirement, test your app for 16 KB page size compatibility and fix any issues.


Detail:

Exception android.runtime.JavaProxyThrowable: [System.ArgumentException]: Value can not be null or empty.
  at Syncfusion.Maui.Barcode.SfBarcodeGenerator.OnValuePropertyChanged + 0x24 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObject.OnBindablePropertySet + 0x1a (Unknown Source)
  at Microsoft.Maui.Controls.Element.OnBindablePropertySet + 0x16 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObject.SetValueActual + 0x132 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObject.SetValueCore + 0x15e (Unknown Source)
  at Microsoft.Maui.Controls.BindingExpression.ApplyCore + 0x226 (Unknown Source)
  at Microsoft.Maui.Controls.BindingExpression.Apply + 0x12c (Unknown Source)
  at Microsoft.Maui.Controls.Binding.Apply + 0xb2 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObject.ApplyBindings + 0x2a (Unknown Source)
  at Microsoft.Maui.Controls.BindableObject.SetInheritedBindingContext + 0x75 (Unknown Source)
  at Microsoft.Maui.Controls.Element.SetChildInheritedBindingContext + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.Element.SetLogicalChildBindingContext + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObjectExtensions.PropagateBindingContext + 0x2a (Unknown Source)
  at Microsoft.Maui.Controls.Element.OnBindingContextChanged + 0x17 (Unknown Source)
  at Microsoft.Maui.Controls.VisualElement.OnBindingContextChanged + 0x12 (Unknown Source)
  at Microsoft.Maui.Controls.View.OnBindingContextChanged + 0x17 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObject.SetInheritedBindingContext + 0x7c (Unknown Source)
  at Microsoft.Maui.Controls.Element.SetChildInheritedBindingContext + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.Element.SetLogicalChildBindingContext + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObjectExtensions.PropagateBindingContext + 0x2a (Unknown Source)
  at Microsoft.Maui.Controls.Element.OnBindingContextChanged + 0x17 (Unknown Source)
  at Microsoft.Maui.Controls.VisualElement.OnBindingContextChanged + 0x12 (Unknown Source)
  at Microsoft.Maui.Controls.View.OnBindingContextChanged + 0x17 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObject.SetInheritedBindingContext + 0x7c (Unknown Source)
  at Microsoft.Maui.Controls.Element.SetChildInheritedBindingContext + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.Element.SetLogicalChildBindingContext + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObjectExtensions.PropagateBindingContext + 0x2a (Unknown Source)
  at Microsoft.Maui.Controls.Element.OnBindingContextChanged + 0x17 (Unknown Source)
  at Microsoft.Maui.Controls.VisualElement.OnBindingContextChanged + 0x12 (Unknown Source)
  at Microsoft.Maui.Controls.View.OnBindingContextChanged + 0x17 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObject.SetInheritedBindingContext + 0x7c (Unknown Source)
  at Microsoft.Maui.Controls.Element.SetChildInheritedBindingContext + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.Element.SetLogicalChildBindingContext + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObjectExtensions.PropagateBindingContext + 0x2a (Unknown Source)
  at Microsoft.Maui.Controls.Element.OnBindingContextChanged + 0x17 (Unknown Source)
  at Microsoft.Maui.Controls.VisualElement.OnBindingContextChanged + 0x12 (Unknown Source)
  at Microsoft.Maui.Controls.View.OnBindingContextChanged + 0x17 (Unknown Source)
  at Microsoft.Maui.Controls.BindableObject.SetInheritedBindingContext + 0x7c (Unknown Source)
  at Microsoft.Maui.Controls.Element.SetChildInheritedBindingContext + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.TemplatedPage.SetChildInheritedBindingContext + 0x8 (Unknown Source)
  at Microsoft.Maui.Controls.Element.SetParent + 0x150 (Unknown Source)
  at Microsoft.Maui.Controls.Element.OnChildAdded + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.VisualElement.OnChildAdded + 0x0 (Unknown Source)
  at Microsoft.Maui.Controls.Element.InsertLogicalChild + 0x17 (Unknown Source)
  at Microsoft.Maui.Controls.Page.InternalChildrenOnCollectionChanged + 0x79 (Unknown Source)


I have this in my page:

<barcode:SfBarcodeGenerator Value="{Binding BarcodeValue}" />


1 Reply

BP Baranibharathi Pandian Syncfusion Team July 16, 2026 07:01 AM UTC

Hi Luca,

 

We have validated your query and tested the Barcode Generator in an Android Publish build. We were unable to reproduce the reported issue during our testing.

 

Based on the call stack you shared, the exception appears to occur because the value assigned to the SfBarcodeGenerator Value property is null or an empty string at runtime.

 

Please refer to the following sample, which demonstrates a valid binding setup for the barcode value.

 

C#:

public class MainPageViewModel

{

    public string BarcodeValue { get; set; }

 

    public MainPageViewModel()

    {

        BarcodeValue = "1234567890";

    }

}

 

XML:

<ContentPage  xmlns:barcode="clr-namespace:Syncfusion.Maui.Barcode;assembly=Syncfusion.Maui.Barcode"

             xmlns:local="clr-namespace:BarcodeSample">

 

    <ContentPage.BindingContext>

        <local:MainPageViewModel />

    </ContentPage.BindingContext>

 

    <barcode:SfBarcodeGenerator Value="{Binding BarcodeValue}"/>

 

</ContentPage>

 

Please check the above example and ensure the barcode value binding in your application is configured similarly.

 

Regards,

Baranibharathi P.


Loader.
Up arrow icon