We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

App crashes when built in Release with ProGuard/R8 enabled

When app using SfAutoComplete is built in release configuration with r8 enabled it crashes when the flow reaches the component. Full crash log is attached. In short the system complains about:

  • java.lang.ClassNotFoundException: crc64ad20ae01ed2194e1.CloseButtonView


It looks like you're using some obfuscated java code internally and r8 does not find direct reference to it. I can mitigate this by adding:

-keep class crc64ad20ae01ed2194e1.** { *; }

in proguard.config but that doesn't sound good as I expect that cryptic name can change in the future. What would be the proper solution for this?



Attachment: sfautocomplete.log_e67b478f.zip

1 Reply

VV Vijayakumar Viswanathan Syncfusion Team October 19, 2022 08:36 AM

Hi Bartlomiej,

 

Query: When the app using SfAutoComplete is built in release configuration with r8 enabled it crashes when the flow reaches the component.

 

We are not able to replicate the issue at our end with the mentioned project settings. So we have fixed the issue based on the provided stack trace [error log] and created a custom patch. Could you please check with provided assembly and let us know whether the reported issue is fixed or not.


Please find the fixed assemblies in the attachment.

 

Assembly version: 20.3.0.50

 

Please note that we have created these assemblies for version  20.3.0.50 specifically, to resolve the issue reported in this ticket. If you have received other patches for the same version for other products, please apply all patches in the order received.

 

Note: Please refer to the below link to apply the custom assembly

  

https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget

  

Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.


Regards,

Vijayakumar V


Attachment: Assembly_file_b2eabc82.zip

Loader.
Live Chat Icon For mobile
Up arrow icon