Crash in Amazon APS AdMob Adapter after upgrade AdMob SDK to 20.0.0

318 views
Skip to first unread message

gr...@kochaniak.com

unread,
Apr 15, 2021, 8:56:13 AM4/15/21
to Google Mobile Ads SDK Developers
I upgraded my app to using AdMob Ads SDK to ver. 20.0.0. I use also Amazon APS SDK with Amazon APS AdMob Adapter, both latest versions (APS SDK 8.4.3, APS AdMob Adapter 1.5.0). It now crashes with the following stack trace:

Fatal Exception: java.lang.NoSuchMethodError: No virtual method onAdLeftApplication()V in class Lcom/google/android/gms/ads/AdListener; or its super classes (declaration of 'com.google.android.gms.ads.AdListener' appears in /data/app/com.hyperionics.avar-_1Hc5SovbH0mL2JWMSL9Qg==/base.apk)
       at com.amazon.admob_adapter.APSAdMobCustomBannerEvent.onAdLeftApplication(APSAdMobCustomBannerEvent.java:92)
       at com.amazon.device.ads.DTBAdMRAIDBannerController.lambda$onAdLeftApplication$15(DTBAdMRAIDBannerController.java:687)
       at com.amazon.device.ads.DTBAdMRAIDBannerController.lambda$onAdLeftApplication$15$DTBAdMRAIDBannerController(DTBAdMRAIDBannerController.java)
       at com.amazon.device.ads.-$$Lambda$DTBAdMRAIDBannerController$Cl6tVUqNluS51gWYJL6zHOt6ZCU.run(-.java:2)
       at android.os.Handler.handleCallback(Handler.java:789)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6694)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:769)
       at com.android.internal.os.Device.fp(Device.java)

Not sure who should fix this, AdMob or Amazon developers, if this is not the correct place to report this, please forward to Amazon or indicate the correct place to submit this...

Greg Kochaniak, Hyperionics

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 15, 2021, 9:30:03 AM4/15/21
to gr...@kochaniak.com, google-adm...@googlegroups.com
Hi Greg,

Thank you for bring this issue to our attention. We would ask if you can share via "Reply to author" button with a simple sample app that shows our SDK and the Amazon SDK with the adapters in it. As well as any steps that cause this issue to appear.

At the same time, we would suggest to also reach out to the Amazon SDK Team and let them know about this. As not sure if it is our SDK, Amazon SDK or the adapter. When looking at the stacktrace, I see items that do not appear to be part of our SDK and this is why I would want them to look over it also.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2FYn7Y:ref

gr...@kochaniak.com

unread,
Apr 15, 2021, 3:38:45 PM4/15/21
to Google Mobile Ads SDK Developers
Hi,
creating a sample app that shows banner ads with AdMob and Amazon SDK is a non trivial issue, I have no time for it. The issue is VERY clear from the stack trace I provided, see:

NoSuchMethodError: No virtual method onAdLeftApplication()V in class Lcom/google/android/gms/ads/AdListener; or its super classes (declaration of 'com.google.android.gms.ads.AdListener' appears in /data/app/com.hyperionics.avar-_1Hc5SovbH0mL2JWMSL9Qg==/base.apk)

In AdMob SDK version 20.0.0 the onAdLeftApplication() method was removed from AdListener, but Amazon SDK or its AdMob adapter is still trying to call it. This is what should be corrected, and the code correction is trivial.

Greg

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 15, 2021, 4:25:46 PM4/15/21
to gr...@kochaniak.com, google-adm...@googlegroups.com
Hi Greg,

I work with William and will assist you. The calls are coming from Amazon's adapter and this forum doesn't support this adapter. I would suggest you ask Amazon support to help you out. The list of adapters we support is here, and those adapters are so that other companies can join the bidding for ads that happens on AdMob servers.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2FYn7Y:ref

gr...@kochaniak.com

unread,
Apr 15, 2021, 4:35:28 PM4/15/21
to Google Mobile Ads SDK Developers
Thank you, I reported the issue at https://forums.developer.amazon.com. The exact link to my report there, in case someone else was facing the issue,  is https://forums.developer.amazon.com/questions/238719/crash-in-amazon-aps-admob-adapter-after-upgrade-ad.html
Reply all
Reply to author
Forward
0 new messages