ursus
08/11/2025, 3:25 PM> Task :foo:app:minifyTstStableReleaseWithR8 FAILED
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /Users/bar/AndroidStudioProjects/foo/app/build/outputs/mapping/tstStableRelease/missing_rules.txt.
ERROR: R8: Missing class okhttp3.internal.Util (referenced from: void okhttp3.internal.sse.RealEventSource.processResponse(okhttp3.Response) and 1 other context)
Anyone else experiencing this?Colton Idle
08/11/2025, 3:25 PMursus
08/11/2025, 3:26 PMColton Idle
08/11/2025, 3:26 PMursus
08/11/2025, 3:27 PM# Please add these rules to your existing keep rules in order to suppress warnings.
# This is generated automatically by the Android Gradle plugin.
-dontwarn okhttp3.internal.Util
ursus
08/11/2025, 3:27 PMCaused by: com.android.tools.r8.internal.g: Missing class okhttp3.internal.Util (referenced from: void okhttp3.internal.sse.RealEventSource.processResponse(okhttp3.Response) and 1 other context)
at com.android.tools.r8.internal.gh0.a(R8_8.12.14_57c4cb949dc9299c08af76e64a45e2178c74cd3ffb240ebd6ec37814bb254d10:21)
at com.android.tools.r8.internal.gh0.error(R8_8.12.14_57c4cb949dc9299c08af76e64a45e2178c74cd3ffb240ebd6ec37814bb254d10:1)
at com.android.tools.r8.shaking.M.a(R8_8.12.14_57c4cb949dc9299c08af76e64a45e2178c74cd3ffb240ebd6ec37814bb254d10:6844)
at com.android.tools.r8.shaking.M.a(R8_8.12.14_57c4cb949dc9299c08af76e64a45e2178c74cd3ffb240ebd6ec37814bb254d10:1683)
at com.android.tools.r8.R8.a(R8_8.12.14_57c4cb949dc9299c08af76e64a45e2178c74cd3ffb240ebd6ec37814bb254d10:1628)
at com.android.tools.r8.R8.a(R8_8.12.14_57c4cb949dc9299c08af76e64a45e2178c74cd3ffb240ebd6ec37814bb254d10:210)
at com.android.tools.r8.R8.c(R8_8.12.14_57c4cb949dc9299c08af76e64a45e2178c74cd3ffb240ebd6ec37814bb254d10:11)
at com.android.tools.r8.R8.a(R8_8.12.14_57c4cb949dc9299c08af76e64a45e2178c74cd3ffb240ebd6ec37814bb254d10:5)
at com.android.tools.r8.internal.Gv.a(R8_8.12.14_57c4cb949dc9299c08af76e64a45e2178c74cd3ffb240ebd6ec37814bb254d10:28)
... 32 more
is what I see in console, bit more infoColton Idle
08/11/2025, 4:15 PM-dontwarn okhttp3.internal.Util
to your proguard config fileursus
08/11/2025, 4:15 PMColton Idle
08/11/2025, 4:16 PMyschimke
08/11/2025, 4:50 PMyschimke
08/11/2025, 4:50 PMColton Idle
08/11/2025, 4:51 PMyschimke
08/11/2025, 4:52 PMyschimke
08/11/2025, 4:53 PMursus
08/11/2025, 4:53 PMokhttp-client = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
okhttp-loggingInterceptor = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp" }
yschimke
08/11/2025, 4:53 PMursus
08/11/2025, 4:54 PMyschimke
08/11/2025, 4:54 PMursus
08/11/2025, 4:55 PMursus
08/11/2025, 4:56 PMokhttp-what-im-not-using-directly
, i.e. find the offending library that includes it and then include it myself with the 5.1.0, so the gradle overwriting kicks in, right?yschimke
08/11/2025, 4:57 PMursus
08/11/2025, 4:59 PMursus
08/11/2025, 4:59 PMyschimke
08/11/2025, 5:04 PMyschimke
08/11/2025, 5:04 PMyschimke
08/11/2025, 5:04 PMursus
08/11/2025, 5:51 PMyschimke
08/11/2025, 6:05 PMyschimke
08/11/2025, 6:06 PMursus
08/12/2025, 1:02 PM+--- io.ktor:ktor-client-okhttp:3.2.3
| | | | | \--- io.ktor:ktor-client-okhttp-jvm:3.2.3
| | | | | +--- org.slf4j:slf4j-api:2.0.17
| | | | | +--- io.ktor:ktor-client-core:3.2.3 (*)
| | | | | +--- com.squareup.okhttp3:okhttp:4.12.0 -> 5.1.0 (*)
| | | | | +--- com.squareup.okhttp3:okhttp-sse:4.12.0 <----------