I\'m getting the following crash report in Android development Console. My app runs fine on the simulator or devices that I tried the app on, but for some reason on a Galaxy
In my case this exception happened on Android 4 after upgrade to Retrofit
2.7.1.
See https://github.com/square/retrofit/blob/master/CHANGELOG.md:
Version 2.7.0 (2019-12-09)
This release changes the minimum requirements to Java 8+ or Android 5+. See this blog post for more information on the change.
New: Upgrade to OkHttp 3.14.4. Please see its changelog for 3.x.
See also https://github.com/square/retrofit/issues/3201 and https://github.com/square/retrofit/issues/3042.
Retrofit
depends on OkHttp
that refused pre API 21 support in version 3.13.
So, downgrade Retrofit
to 2.6.4 or even before 2.6.0. I checked, it solved the problem. Also downgrade Retrofit Gson converter (com.squareup.retrofit2:converter-gson) to 2.6.4.