Hello! We are also facing the same problem. We are using Admob and Unity Ads In Unity Engine. Most of the ANRs are related to Admob. Our games have crossed the Bad Behavior threshold (0.47%). I tried to call Load Ad function of admob on other Thread but it can only be called from Main Thread. And we are only showing ads if it is loaded. I have talked to some other studio they are also facing ANRs issue a lot.
#00 pc 000000000004bccc /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
#00 pc 000000000004fb28 /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+144)
#00 pc 00000000000b71dc /apex/com.android.runtime/lib64/bionic/libc.so (NonPI::MutexLockWithTimeout(pthread_mutex_internal_t*, bool, timespec const*)+668)
#00 pc 0000000000756590 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
#00 pc 0000000000756558 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
#00 pc 00000000001fbcb8 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
#00 pc 0000000000304230 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
#00 pc 00000000001a5e70 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
#00 pc 00000000001a4120 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
#00 pc 00000000010d4da0 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
#00 pc 00000000010da714 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
#00 pc 00000000010d1478 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
#00 pc 0000000001084424 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
#00 pc 00000000010d979c /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
#00 pc 00000000010d9644 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
#00 pc 00000000010daf90 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
#00 pc 00000000005ec5ac /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
#00 pc 00000000006740a8 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
#00 pc 000000000034c278 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
#00 pc 0000000000358800 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
#00 pc 000000000019cd90 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
#00 pc 0000000000022bc0 /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/oat/arm64/base.odex (Java_com_unity3d_player_ReflectionHelper_nativeProxyInvoke__JLjava_lang_String_2_3Ljava_lang_Object_2+208)
at com.unity3d.player.ReflectionHelper.nativeProxyInvoke (Native method)
at com.unity3d.player.ReflectionHelper.a (unavailable)
at com.unity3d.player.ReflectionHelper$1.invoke (unavailable)
at java.lang.reflect.Proxy.invoke (Proxy.java:1006)
at com.google.android.gms.ads.initialization.OnInitializationCompleteListener.onInitializationComplete
at com.google.android.gms.internal.ads.zzzd$zza.zze
at com.google.android.gms.internal.ads.zzajf.zza
at com.google.android.gms.internal.ads.zzgw.onTransact
at android.os.Binder.transact (Binder.java:1079)
at
fy.bb (com.google.android.gms.policy_ads_fdr_dynamite@204890103@204890103057.353069505.353069505:2)
at com.google.android.gms.ads.internal.initialization.f.e (com.google.android.gms.policy_ads_fdr_dynamite@204890103@204890103057.353069505.353069505)
at com.google.android.gms.ads.nonagon.initialization.a.run (unavailable:2)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at qg.a (com.google.android.gms.policy_ads_fdr_dynamite@204890103@204890103057.353069505.353069505)
at com.google.android.gms.ads.internal.util.f.a (com.google.android.gms.policy_ads_fdr_dynamite@204890103@204890103057.353069505.353069505:1)
at qg.dispatchMessage (com.google.android.gms.policy_ads_fdr_dynamite@204890103@204890103057.353069505.353069505)
at android.os.Looper.loop (Looper.java:246)
at android.app.ActivityThread.main (ActivityThread.java:8425)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:596)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)