SDK internal error crashing app when trying to open chat | Community
Skip to main content

SDK internal error crashing app when trying to open chat

  • October 26, 2022
  • 1 reply
  • 0 views

William21

App is currently crashing when calling:

Zendesk.instance.messaging.showMessaging(requireContext())

Exception within SDK:

java.lang.NoSuchMethodError: No virtual method add(Lcoil/decode/Decoder;)Lcoil/ComponentRegistry$Builder; in class Lcoil/ComponentRegistry$Builder; or its super classes (declaration of 'coil.ComponentRegistry$Builder' appears

 

I'm using dependency:

implementation "zendesk.messaging:messaging-android:2.6.0"

Any idea of what could be happening? Is this SDK missing this internal dependency? Found this similar issue without solution from some months ago: https://support.zendesk.com/hc/en-us/community/posts/4584495858714-Unable-to-start-activity

1 reply

William21
  • Author
  • October 26, 2022

After more investigation I figured out that the source of issue was that zendesk.messaging:messaging-android uses zendesk.ui:ui-android internally, and this library was using coil 1.3.0 which would be later replaced by newer versions on the project, and ultimately result on error because the signature on some methods have changed since then.

After several tries on fixing this, I accessed Zendesk artifactory and found out there's a new version of zendesk.messaging:messaging-android library (2.7.0) published 2 days ago which is not shown on the release website. This version updates coil internally and fixes this issue.