Closed Aman1706 closed 1 year ago
FYI I downgraded the version to 2.0.0 and it works fine there Looks like its some issue with 2.1.0
Hi @Aman1706! Sorry for the delayed response. We can't reproduce the issue with an example app. Could you please create some minimal playground where this problem occurs? Or, if you have more detailed information about the error, such as a stake trace, could you please share it? That would be very helpful
@pshoniuk , I too am facing the same issue. Only happens in release builds on Android.
Here is the error I get if I run my app in Android Studio with the build variant set to release:
--------- beginning of crash
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.myproject, PID: 7868
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: kotlin.reflect.full.IllegalCallableAccessException: java.lang.IllegalAccessException: Class java.lang.Class<kotlin.reflect.jvm.internal.calls.CallerImpl$FieldGetter> cannot access private final field com.giphy.sdk.core.models.Image com.giphy.sdk.core.models.Images.downsized of class java.lang.Class
Hi @ujjwal-techahead-personal Thank you for the report. We reproduced the issue on our side. The problem seems to be related to ProGuard misconfiguration. I'll update the status here when we have new information.
🐛 Bug Report
If a user tries to select a gif in the GiphyDialog menu, the app crashes This is happening for android and only for an apk or aab build, it works fine when running in debug.
I was using an older version of this package and then bumped it up to the latest, after that this issue occurred.
Looking at sentry I see this error
To Reproduce
(Write your steps here:)
Your Environment
Reproducible Demo
https://user-images.githubusercontent.com/41548441/207300939-59059877-fbd2-401d-9429-3eedfa320b68.mov