Giphy / giphy-react-native-sdk

GIPHY React Native SDK
https://developers.giphy.com
Apache License 2.0
69 stars 25 forks source link

Error: Exception in HostObject::get for prop 'RTNGiphyDialogModule' #200

Closed PROda221 closed 3 weeks ago

PROda221 commented 1 month ago

Hi everyone, I am using RN 0.74.3. I used giphy sdk package at version 3.3.1 but saw all gifs were static (not playing)

So I referred to this change (i.e, copied resolution change to build.gradle (app) above dependencies)

After such change, I am now facing this issue:- Error: Exception in HostObject::get for prop 'RTNGiphyDialogModule': java.lang.NoSuchMethodError: No direct method (Lcom/giphy/sdk/ui/themes/GPHTheme;[Lcom/giphy/sdk/ui/GPHContentType;ZZLcom/giphy/sdk/core/models/enums/RatingType;Lcom/giphy/sdk/core/models/enums/RenditionType;Lcom/giphy/sdk/core/models/enums/RenditionType;Lcom/giphy/sdk/core/models/enums/RenditionType;ZILcom/giphy/sdk/ui/GPHContentType;ZZZZLcom/giphy/sdk/ui/drawables/ImageFormat;ZFZILkotlin/jvm/internal/DefaultConstructorMarker;)V in class Lcom/giphy/sdk/ui/GPHSettings; or its super classes (declaration of 'com.giphy.sdk.ui.GPHSettings' appears in /data/app/~~CsonlMbIpkPe_fVXvLsvKQ==/com.just_ask-vvEpg2-fehg-q2KwBA555Q==/base.apk!classes6.dex), js engine: hermes

Am I missing something?

ALexanderLonsky commented 1 month ago

Hey @PROda221, Did you include com.giphy.sdk:ui:2.3.15? This is the latest Android SDK version, where we introduced new properties.

PROda221 commented 1 month ago

This is what I did in android build.gradle (app)

image

ALexanderLonsky commented 1 month ago

you need to replace 2.3.13 with 2.3.15

PROda221 commented 3 weeks ago

Yup this works! Thanks :)