qonversion / react-native-sdk

React Native SDK for cross-platform in-app purchase and subscription infrastructure, revenue analytics, engagement automation, and integrations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No virtual method ToString in class Lokhttp3/Cookie

jfbn opened this issue · comments

I'm trying to install this library so that we can use it in Observer mode alongside IAPHub.

Launching the app on Android will cause a crash without any error messages being sent.
Luckily I was able to track down the issue with sentry.

NoSuchMethodError: No virtual method toString(Z)Ljava/lang/String; in class Lokhttp3/Cookie; or its super classes (declaration of 'okhttp3.Cookie' appears in /data/app/com.gamerzclass.gamerzclassmembers-NXTfYo4m0itGOWA7suy2CA==/base.apk!classes4.dex)

It appears that I some part of this library is trying to use a method from https://square.github.io/okhttp/ - I'm just confused as to why this dependency is not either automatically installed or mentioned as a requirement in the getting started articles.

I have scheduled a technical support call with Qonversion tomorrow to address concerns unrelated to this issue. I do however intend to refer to this issue during the call to clear things up.

Hello, @jfbn. Sorry for the late response 🥺. The problem should be fixed since sdk version 2.4.1. But we didn't encounter the app crash. There was only one message in the logs.

If you still have problems, please contact us.

have you solved the issue?

Hi, @b0n1q
Yes, use the latest version of SDK, please.