-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shopify will crash with okhttp 4.9.0 #690
Comments
it will ok when I use okhttp 3.12.0 |
Hi, the issue here is that But as a workaround, You can either write your own implementation of the cache by extending
|
thank you very much! @PiotrWpl |
since everything is internal in okhttp I had to create a java class
That does the same thing as what Shopify does. But now there are other issues :
|
It seems like the only solutions are:
|
Any update about this ? Because of some bug with Android O devices, i must use a recent version of okhttp (at least 3.9.1) : square/okhttp#3438 Because of some incompatibility between mobile-buy-sdk-android and okhttp 4.x (cf first comment of this issue describe by keepmovingljzy), i use okhttp 3.14.9. But i encounter an issue reported many times by crashlytics with this version : I cannot use solution proposed by PiotrWpl and TimoPtr to implement ResponseCacheStore because of ResponseCacheStore is internal. Coult it be possible to Shopify to fix this by used the last version of okhttp (or at least okhttp 4.x) ? |
Shopify will crash with okhttp 4.9.0
when I use the shopify with okhttp 4.9.0,it will crash,I have forced all versions to be unified
it will crash when run this code
The exception is java.lang.NoSuchMethodError: No static method create(Lokhttp3/internal/io/FileSystem;Ljava/io/File;IIJ)Lokhttp3/internal/cache/DiskLruCache; in class Lokhttp3/internal/cache/DiskLruCache; or its super classes (declaration of 'okhttp3.internal.cache.DiskLruCache' appears in /data/app/com.xxx.xxx-LJaR5pwAQuLp9OygATCHIg==/base.apk!classes3.dex)
how to deal with it?
The text was updated successfully, but these errors were encountered: