Google Mobile Ads Next Gen SDK 0.22.0-beta01 crash

55 views
Skip to first unread message

Niktec

unread,
Dec 1, 2025, 12:19:05 AM (yesterday) Dec 1
to Google Mobile Ads SDK Developers
When implementing okhttp3 besides the Google Mobile Ads Next Gen SDK my app crashes after opening.


example:

implementation("com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk:0.22.0-beta01")
implementation("com.squareup.okhttp3:okhttp:5.3.2")


causes:

java.lang.NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Util;
  at ads_mobile_sdk.u8.a(SourceFile:1125)
  at ads_mobile_sdk.pb1.a(SourceFile:3)
  at ads_mobile_sdk.kb1.invokeSuspend(SourceFile:392)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652)
  at java.lang.Thread.run(Thread.java:1563)
  Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@742c302, ads_mobile_sdk.fw@463d413]
Caused by: java.lang.ClassNotFoundException: Didn't find class "okhttp3.internal.Util"


When removing the okhttp3 implementation, the crash disappears but the app appears to be using an old Version 4.11.0 of okhttp3 which seems  to be part of the Google Mobile Ads Next Gen SDK


Reply all
Reply to author
Forward
0 new messages