Fatal Exception: android.content.ActivityNotFoundException: Unable to find explicit activity class {.../com.google.android.gms.ads.AdActivity}

404 views
Skip to first unread message

xfx...@gmail.com

unread,
Jul 11, 2021, 9:53:50 AM7/11/21
to Google Mobile Ads SDK Developers
Hi, after upgrade to 'com.google.android.gms:play-services-ads:20.2.0', there are many crashes every day, but not on all devices, and I can’t reproduce it.

This is the stack trace from firebase:

Fatal Exception: android.content.ActivityNotFoundException: Unable to find explicit activity class {.../com.google.android.gms.ads.AdActivity}; have you declared this activity in your AndroidManifest.xml?
       at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2071)
       at android.app.Instrumentation.execStartActivity(Instrumentation.java:1729)
       at android.app.Activity.startActivityForResult(Activity.java:5430)
       at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:560)
       at android.app.Activity.startActivityForResult(Activity.java:5360)
       at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:560)
       at android.app.Activity.startActivity(Activity.java:5774)
       at android.app.Activity.startActivity(Activity.java:5727)
       at com.google.android.gms.ads.internal.util.zzr.zzO(zzr.java:9)
       at com.google.android.gms.ads.internal.overlay.zzm.zza(zzm.java:111)
       at com.google.android.gms.internal.ads.zzead.a(zzead.java:125)
       at com.google.android.gms.internal.ads.zzddu.c(zzddu.java:88)
       at com.google.android.gms.internal.ads.zzefm.zzQ(zzefm.java:41)
       at com.google.android.gms.internal.ads.zzbof.show(zzbof.java:16)

BTW, I've already included  -keep class com.google.android.gms.ads.** { *; } in the proguard-rules file, and included com.google.android.gms.ads.AdActivity in the AndroidManifest.xml.

Please try to fix it, thanks!crash.png

xfx...@gmail.com

unread,
Jul 11, 2021, 10:04:47 AM7/11/21
to Google Mobile Ads SDK Developers
And, I also encountered another similar crash:

Fatal Exception: android.content.ActivityNotFoundException: Unable to find explicit activity class {.../com.google.android.gms.ads.AdActivity}; have you declared this activity in your AndroidManifest.xml?
       at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2005)
       at android.app.Instrumentation.execStartActivity(Instrumentation.java:1673)
       at android.app.Activity.startActivityForResult(Activity.java:4762)
       at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:560)
       at android.app.Activity.startActivityForResult(Activity.java:4691)
       at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:560)
       at android.app.Activity.startActivity(Activity.java:5081)
       at android.app.Activity.startActivity(Activity.java:5049)
       at com.google.android.gms.ads.internal.util.r.G(r.java:2)
       at com.google.android.gms.ads.internal.overlay.l.a(l.java:7)
       at com.google.android.gms.ads.internal.overlay.l.b(l.java)
       at com.google.android.gms.ads.nonagon.render.ba.a(ba.java:8)
       at com.google.android.gms.ads.nonagon.ad.interstitial.b.b(b.java:4)
       at com.google.android.gms.ads.nonagon.shim.ag.J(ag.java:2)
       at com.google.android.gms.ads.nonagon.shim.z.J(z.java)
       at com.google.android.gms.ads.internal.client.bb.bL(bb.java:8)
       at fv.onTransact(fv.java:4)
       at android.os.Binder.transact(Binder.java:667)
       at com.google.android.gms.internal.ads.zzhq.zzbp(zzhq.java:5)
       at com.google.android.gms.internal.ads.zzbbs.zzQ(zzbbs.java:9)
       at com.google.android.gms.internal.ads.zzbof.show(zzbof.java:16)

crash.png

Mobile Ads SDK Forum Advisor

unread,
Jul 12, 2021, 2:20:02 AM7/12/21
to xfx...@gmail.com, google-adm...@googlegroups.com

Hello there,

Thank you for reaching out to us.

To better investigate this crashes, could you please provide us your sample app where this crashes occur and steps if you can replicate it? You can send it via Reply privately to author option or send it directly to mobileads...@gmail.com? Kindly inform us on this thread if you sent it directly to the email provided.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 

 

ref:_00D1U1174p._5004Q2JaOrm:ref

xfx...@gmail.com

unread,
Jul 14, 2021, 3:58:31 AM7/14/21
to Google Mobile Ads SDK Developers
Hi, like I said, I can’t replicate it, I have tried many times. but there are indeed many crashes :(

Mobile Ads SDK Forum Advisor

unread,
Jul 14, 2021, 6:47:00 AM7/14/21
to xfx...@gmail.com, google-adm...@googlegroups.com

Hello,

Thank you for your response.

Could you please provide the following details via Reply privately to author option or send it directly to mobileads...@gmail.com? Kindly inform us on this thread if you sent it directly to the email provided.

Reply all
Reply to author
Forward
0 new messages