Closed lassana closed 6 years ago
I'm able to fix the crash it by the obvious rule -keep class okhttp3.RealCall { *; }
, but I'm not sure if this is enough.
I am not able to reproduce this.
I am going to include a catch for Java.Lang.LinkageError but also this line to force the linker to include RealCall class:
var call = Square.OkHttp3.RealCall.FromArray<int>(new[] { 0 });
Thanks for the info
It happens on release mode dont?
Yes, on release, although I haven't tried debug+proguard.
I will keep this open as i cannot reproduce it.
I've had this crash today as well on the latest version, v2.7.2. Seems to be fixed with the proguard rule above.
If proguard is enabled for the project,
modernhttpclient
crashes the app when a request fails (e.g. when Internet connection is not available). This happens with 2.7.0 and 2.7.1. I suppose it started happen with one of latest Xamarin updates.My proguard configuration file contains these two lines required by OkHttp3:
Any idea how to resolve it? Proguard is extremely important for us, so disabling it is not an option.