java.lang.VerifyError when loadAd

1,128 views
Skip to first unread message

Anh Le

unread,
Feb 27, 2023, 5:48:22 AM2/27/23
to Google Mobile Ads SDK Developers
Hi! I'm getting crashes on this line in my android application:

...
try {
...
        mAdView.loadAd(adRequest); // crashes, even though i use try/catch
...
    } catch {
...
    }
...

Crash stack trace:

Fatal Exception: java.lang.VerifyError Verifier rejected class d.c.b.b.i.a.ju1: java.lang.Object d.c.b.b.i.a.ju1.b() failed to verify: java.lang.Object d.c.b.b.i.a.ju1.b(): [0x30] register v3 has type Reference: java.lang.Object but expected Precise Reference: d.c.b.b.i.a.wp0 (declaration of 'd.c.b.b.i.a.ju1' appears in /data/app/app.name-qF-HcicuUKTt7b2mKB1ufg==/base.apk) com.google.android.gms.internal.ads.zzcsa.<init> (zzcsa.java:164) com.google.android.gms.internal.ads.zzcry.zzj (zzcry.java:93) com.google.android.gms.internal.ads.zzfev.zzb (zzfev.java:41) com.google.android.gms.internal.ads.zzerh.zzf (zzerh.java:2) com.google.android.gms.internal.ads.zzerh.zzaa (zzerh.java:6) com.google.android.gms.ads.internal.client.zzea.zzm (zzea.java:6) com.google.android.gms.ads.BaseAdView.loadAd (BaseAdView.java:4) app.name.activity.MainActivity.initAds (MainActivity.java:2) app.name.activity.MainActivity.onCreate (MainActivity.java:8) android.app.Activity.performCreate (Activity.java:7025) android.app.Activity.performCreate (Activity.java:7016) android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1217) android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2812) android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2955) android.app.ActivityThread.-wrap12 (ActivityThread.java) android.app.ActivityThread$H.handleMessage (ActivityThread.java:1650) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop (Looper.java:164) android.app.ActivityThread.main (ActivityThread.java:6719) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:449) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:807)

The crashes happen 755 times affecting 166 users in 5 days (from the day I updated my application), and they happen from Android 5 to Android 12.
But it's not reproducible on my side, I got the report from Firebase Crashlytics

Version that I'm using:
implementation 'com.google.firebase:firebase-ads:21.5.0'

Mobile Ads SDK Forum Advisor

unread,
Feb 27, 2023, 12:08:27 PM2/27/23
to lta...@gmail.com, google-adm...@googlegroups.com

Hi Anh,

Thank you for reaching out to us.

With regard to the crashes that you're encountering, can you confirm first if you're using the Mobile Ads SDK with the dependencies of "implementation 'com.google.android.gms:play-services-ads:21.5.0'"? I've seen that you're using the "implementation 'com.google.firebase:firebase-ads:21.5.0'", can you confirm if you're using the Firebase for AdMob? In addition to that, kindly provide us the following details below for us to further check. You can provide the following details via reply privately to author option or directly provide it to the link below.

  • Sample app project
  • Steps to replicate
  • Device name and version affected
  • App ID
If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002jH5ZIQA0&entry.80707362=00168837

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Regards,
Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2jH5ZI:ref

Anh Le

unread,
Feb 27, 2023, 9:00:09 PM2/27/23
to Google Mobile Ads SDK Developers
Hi,

I confirm that I'm using the Firebase for AdMob, and I'm using the "implementation 'com.google.firebase:firebase-ads:21.5.0'".
But I'm sorry that I can't provide sample app because the crashes happen in my production app and they are not reproducible on my side. I got the crashes report from Firebase Crashlytics.

Screenshot 2023-02-28 at 08.56.45.png

Mobile Ads SDK Forum Advisor

unread,
Feb 28, 2023, 3:54:19 AM2/28/23
to lta...@gmail.com, google-adm...@googlegroups.com
Hello Anh,

Thank you for the clarification. But for us to proceed with the investigation, we will still need the Full Stack Trace/Crash Log. You can provide the following details via reply privately to author option or directly provide it to the link below.

Harsh Raj

unread,
Jun 29, 2023, 12:30:48 AM6/29/23
to Google Mobile Ads SDK Developers
Hello Anh, 

I was also facing the same issue like this in my release build.
 
My findings regarding this issues are:
* It is causing because of the obfuscation of  "com.google.android.gms.internal.ads" package.
* Adding a keep rule in "proguard-rules.pro" fixes this issue.

Proguard rule: "-keep class com.google.android.gms.internal.ads.**{ *; }"

Harsh Raj

unread,
Jun 29, 2023, 12:40:57 AM6/29/23
to Google Mobile Ads SDK Developers
Hi, Stack trace of the crash happening in app is

Caused by java.lang.VerifyError
Verifier rejected class g.h.b.e.h.a.tl1: java.lang.Object g.h.b.e.h.a.tl1.zzb() failed to verify: java.lang.Object g.h.b.e.h.a.tl1.zzb(): [0x30] register v3 has type Reference: java.lang.Object but expected Precise Reference: g.h.b.e.h.a.xh0 (declaration of 'g.h.b.e.h.a.tl1' appears in /data/app/com.oogwayapps.draw-_FVCH5-WYeY_Oo2ur7uzXA==/base.apk)
com.google.android.gms.internal.ads.zzcis.<init> (zzcis.java:62)
com.google.android.gms.internal.ads.zzciq.zze (zzciq.java:3)
com.google.android.gms.internal.ads.zzciq.zzh (zzciq.java:1)
com.google.android.gms.internal.ads.zzewd.zzb (zzewd.java:1)
com.google.android.gms.internal.ads.zzewd.zzc (zzewd.java:1)
com.google.android.gms.internal.ads.zzeuf.zzb (zzeuf.java:23)
com.google.android.gms.internal.ads.zzevd.zzaa (zzevd.java:10)
com.google.android.gms.internal.ads.zzavu.zza (zzavu.java:7)
com.google.android.gms.ads.appopen.zzb.run (zzb.java:2)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
java.lang.Thread.run (Thread.java:764)

and it's happening on the these devices:
Xiaomi
Oppo
Samsung
Vivo
Oneplus
Motorola
Oppo
Huawei
Transsion

Mobile Ads SDK Forum Advisor

unread,
Jun 29, 2023, 3:21:04 AM6/29/23
to harshr...@gmail.com, google-adm...@googlegroups.com
Hello Harsh Raj,


Thank you for reaching out to us.

For us to properly troubleshoot your issue, kindly provide us the following information below privately:
  • Sample App (If applicable)
  • Steps to replicate (If applicable)
  • App ID
  • SDK Version
  • Complete Stack Trace Error
  • Device name and versions affected
  • Frequency of crashes
You can provide the following details via reply privately to author option or directly provide it to the link below.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002jH5ZIQA0&entry.80707362=00168837

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

This message is in relation to case "ref:_00D1U1174p._5004Q2jH5ZI:ref"

Thanks,

 
Google Logo Mobile Ads SDK Team


Sohaib Ahmed

unread,
Apr 7, 2025, 7:49:28 AM4/7/25
to Google Mobile Ads SDK Developers
Any fix?
I'm still getting this crash...

by adding following proguard
-keep class com.google.android.gms.internal.ads.**{ *; }

I'm getting another crash as follow:

java.lang.NoSuchFieldError: No field a of type Ljava/util/HashMap; in class Lorg/json/JSONObject; or its superclasses (declaration of 'org.json.JSONObject' appears in /apex/com.android.art/javalib/core-libart.jar)
    at com.google.android.gms.internal.ads.zzbbw.zzb(SourceFile:95)
    at com.google.android.gms.internal.ads.zzbof.run(SourceFile:12)
    at java.lang.Thread.run(Thread.java:1012)

Mobile Ads SDK Forum Advisor

unread,
Apr 7, 2025, 11:56:47 AM4/7/25
to sohaibahme...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

It is always recommended to use the latest version of the SDKs to avoid any issues. 

Could you kindly provide the below information privately for further investigation:

  • Steps to replicate the issue
  • The full stack trace
  • Sample project reproducing the issue

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files via reply to author option or by performing the following steps:

3. Please reply to this thread when you have uploaded your file(s). Please do not share this link.


Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-07 15:55:57Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02jH5ZI:ref" (ADR-00168837)



Reply all
Reply to author
Forward
0 new messages