App crash after calling to MobileAds.initialize

450 views
Skip to first unread message

Avior Aboo

unread,
May 20, 2021, 3:49:03 AM5/20/21
to Google Mobile Ads SDK Developers
Hello,
I'm getting crash when the app starts and I call to MobileAds.initialize

Firebase shows that 99% is from Samsung devices and 99% Android 8, and all the rest of the crashes are from Android below 8. that error just started from no were.

Fatal Exception: java.lang.NoSuchMethodError
No direct method <init>(Lanq;Lanq;)V in class Lcom/google/android/gms/ads/nonagon/ad/banner/c; or its super classes (declaration of 'com.google.android.gms.ads.nonagon.ad.banner.c' appears in /data/user_de/0/com.google.android.gms/app_chimera/m/00000233/dl-AdsFdrDynamite.integ_210890500000000.apk)
keyboard_arrow_up
com.google.android.gms.ads.nonagon.a.<init> (a.java:90)
arrow_drop_down
com.google.android.gms.ads.internal.client.bs.bC (bs.java:4)
arrow_right
gj.onTransact (gj.java:4)
android.os.Binder.transact (Binder.java:635)
czx.et (czx.java:2)
com.google.android.gms.ads.internal.client.bc.getMobileAdsSettingManager (bc.java)
arrow_drop_down
com.google.android.gms.ads.internal.client.bd.ea (bd.java:4)
czy.onTransact (czy.java:11)
android.os.Binder.transact (Binder.java:635)
arrow_drop_down
com.google.android.gms.ads.MobileAds.initialize (MobileAds.java:10)
com.eyecon.global.Central.MyApplication.initAds (MyApplication.java:498)
com.eyecon.global.Central.MyApplication.access$800 (MyApplication.java:112)
com.eyecon.global.Central.MyApplication$7.run (MyApplication.java:450)
java.lang.Thread.run (Thread.java:764)

Mobile Ads SDK Forum Advisor Prod

unread,
May 20, 2021, 5:33:55 AM5/20/21
to av...@eyecon-app.com, google-adm...@googlegroups.com

Hi Avior,

Thank you for reaching out to us.

Could you please provide the following details via Reply privately to author option or send it directly to mobileads...@gmail.com?

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2HCKgG:ref
Message has been deleted

Komenan jean privat Kouassi

unread,
May 23, 2021, 4:43:44 PM5/23/21
to Avior Aboo, Google Mobile Ads SDK Developers
Please Can I get your number? 

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/a817f63e-d7bf-4fb0-9cff-38bfe30dfad8n%40googlegroups.com.

Mobile Ads SDK Forum Advisor Prod

unread,
May 24, 2021, 12:42:00 AM5/24/21
to av...@eyecon-app.com, mobileads...@gmail.com, google-adm...@googlegroups.com
Hi Avior,

I work along with Princess. Allow me to assist you in this.

As per your last response, you're initializing the Mobile Ads SDK on working thread which seems to be causing the issue. Please do note that one requirement of the Mobile Ads SDK is to make all calls on the main thread.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2HCKgG:ref

Mobile Ads SDK Forum Advisor Prod

unread,
May 24, 2021, 12:43:37 AM5/24/21
to komenanjeanpr...@gmail.com, google-adm...@googlegroups.com, av...@eyecon-app.com
Hi there,

I'm afraid that we weren't allowed to share our contact numbers and we can only provide technical assistance through this forum only. With this, Kindly open a new thread with the details of your concern, so we could further assist you.

Avior Aboo

unread,
May 24, 2021, 7:38:36 AM5/24/21
to Mobile Ads SDK Forum Advisor Prod, mobileads...@gmail.com, google-adm...@googlegroups.com

Hello Teejay,

 

Ok, I will make the change, but I will know if this solves the problem only on the next version.

Anyway, the crash itself is not saying that there is a problem that I calling it from a worker thread.

 

Fatal Exception: java.lang.NoSuchMethodError

No direct method <init>(Lanq;Lanq;)V in class Lcom/google/android/gms/ads/nonagon/ad/banner/c; or its super classes (declaration of 'com.google.android.gms.ads.nonagon.ad.banner.c' appears in /data/user_de/0/com.google.android.gms/app_chimera/m/00000233/dl-AdsFdrDynamite.integ_210890500000000.apk)

com.google.android.gms.ads.nonagon.a.<init> (a.java:90)

com.google.android.gms.ads.internal.client.bs.bC (bs.java:4)

gj.onTransact (gj.java:4)

android.os.Binder.transact (Binder.java:635)

czx.et (czx.java:2)

com.google.android.gms.ads.internal.client.bc.getMobileAdsSettingManager (bc.java)

com.google.android.gms.ads.internal.client.bd.ea (bd.java:4)

czy.onTransact (czy.java:11)

android.os.Binder.transact (Binder.java:635)

com.google.android.gms.ads.MobileAds.initialize (MobileAds.java:10)

com.eyecon.global.Central.MyApplication.initAds (MyApplication.java:498)

com.eyecon.global.Central.MyApplication.access$800 (MyApplication.java:112)

com.eyecon.global.Central.MyApplication$7.run (MyApplication.java:450)

java.lang.Thread.run (Thread.java:764)

 

Avior

 

מאת: Mobile Ads SDK Forum Advisor Prod <mobileadssdk...@gmail.com>
נשלח: Monday, 24 May 2021 7:42
אל: Avior Aboo<av...@eyecon-app.com>
עותק: mobileads...@gmail.com; google-adm...@googlegroups.com
נושא: RE: [google-admob-ads-sdk] App crash after calling to MobileAds.initialize

Mobile Ads SDK Forum Advisor Prod

unread,
May 24, 2021, 2:41:48 PM5/24/21
to av...@eyecon-app.com, mobileads...@gmail.com, google-adm...@googlegroups.com
Hi Avior,

Thank you for the response back. I work along with Teejay and will be assisting you today. I have looked over the thread and would agree with my teammate, as the system is designed to work on the main thread. When it is pushed to a worker thread. It has been known to cause issues. That is why we suggest to keep it on the main thread. Again part of this is as intended, even though it might not show as that.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2HCKgG:ref

Avior Aboo

unread,
May 27, 2021, 5:20:09 AM5/27/21
to Mobile Ads SDK Forum Advisor Prod, mobileads...@gmail.com, google-adm...@googlegroups.com

Thank you very much Willian,

The idea of the thread is that we had a problem with the time it takes when starting the app. (100-160 milliseconds)

Anyway I change that and did what you suggested.

 

Thank you!

 

Avior

 

מאת: Mobile Ads SDK Forum Advisor Prod <mobileadssdk...@gmail.com>
נשלח: Monday, 24 May 2021 21:41


אל: Avior Aboo <av...@eyecon-app.com>
עותק: mobileads...@gmail.com; google-adm...@googlegroups.com
נושא: RE: [google-admob-ads-sdk] App crash after calling to MobileAds.initialize

 

Hi Avior,

Reply all
Reply to author
Forward
0 new messages