You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without using a dependency manager, consuming projects must manually declare any transitive dependencies as they are not packaged into the .aar file. This can be inconvenient.
Reproduction Steps
In an app project that does not use Jackson as serialization library.
Add the Pixel dependency as described in the documentation.
Try to send any event.
You will encounter a crash in RestClient::validatePixel at line 54 (val mapper = ObjectMapper()) with the following exception:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/fasterxml/jackson/databind/ObjectMapper;
at com.bloomreach.discovery.pixel.network.RestClient.validatePixel(RestClient.kt:54)
at com.bloomreach.discovery.pixel.validator.PixelValidator$validatePixel$1.invokeSuspend(PixelValidator.kt:56)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
...
Inconvenient Fix
To resolve this issue, add the Jackson dependency explicitly in the app's build.gradle file. However, with this approach, any changes to the dependencies of discovery-android-sdk after updates will need to be manually added by the consumer.
The text was updated successfully, but these errors were encountered:
Without using a dependency manager, consuming projects must manually declare any transitive dependencies as they are not packaged into the .aar file. This can be inconvenient.
Reproduction Steps
You will encounter a crash in RestClient::validatePixel at line 54 (val mapper = ObjectMapper()) with the following exception:
Inconvenient Fix
To resolve this issue, add the Jackson dependency explicitly in the app's build.gradle file. However, with this approach, any changes to the dependencies of
discovery-android-sdk
after updates will need to be manually added by the consumer.The text was updated successfully, but these errors were encountered: