After updating retrofit 2.7.0 required JAVA 1.8 but the issue is that the App is crashing on some of the mobile devices while using JAVA 1.8 so please resolve such issues. I notice there no issue in my code but after using JAVA 1.8 a lot of with retrofit 2.7.0 crashes occur.
You have provided no information about the crash to result in anything actionable from our side. Please include, at minimum, a full stacktrace. Any other information upto and including an executable sample that reproduces the issue is also welcome.
I'we got same App crash after update to 2.7.0
(with exception: Method threw 'java.lang.BootstrapMethodError' exception)
But I fix this problem after read how to update to Java 1.8+ and Android 5.0+:
https://cashapp.github.io/2019-02-05/okhttp-3-13-requires-android-5
when add to build.gradle:
android {
...
compileOptions {
targetCompatibility = "8"
sourceCompatibility = "8"
}
}
Thank's for your change log: https://github.com/square/retrofit/blob/master/CHANGELOG.md
I resolve my issue but it need API 21 why, some of my project need API 16
I resolve my issue but it need API 21 why, some of my project need API 16
I think that you can downgrade to 2.6.3 to fix your problem. Because 2.7.0 minimum requirements to Java 8+ or Android 5+(API 21)
Most helpful comment
I think that you can downgrade to 2.6.3 to fix your problem. Because 2.7.0 minimum requirements to Java 8+ or Android 5+(API 21)