I am getting ANRs and crashes

49 views
Skip to first unread message

Moeez Chohan

unread,
Feb 12, 2025, 3:38:17 AMFeb 12
to Google Mobile Ads SDK Developers

i am getting all these ANRs and crashes on my app tell me how i can fix it when i remove this library (google_mobile_ads) then it remove all ANRs and crashes why i am getting these all ANRs and crashes due to this library so please tell me how i can fix all these issues

Thank you

i created it issue log in google mobile ads library but they respond me back

Hi @MoeezChohan1089, because these are all Android stack traces this is not something the flutter plugin can control. To have your issue triaged please create a new thread in the AdMob Developers forum. From there our support team can start the troubleshooting process.

Closing this out - thanks!

please how i can solve it.


222.png
1111.png

Mobile Ads SDK Forum Advisor

unread,
Feb 12, 2025, 5:25:38 AMFeb 12
to moeezch...@gmail.com, google-adm...@googlegroups.com

Hi Moeez, 

Thank you for contacting the Mobile Ads SDK support team.

Can you confirm if you are making use of initialization optimization flag? You can enable optimized SDK initialization and ad loading to improve the overall responsiveness of ads and help prevent "Application Not Responding" (ANR) errors on your app. The best way to optimize initialization is to call MobileAds.initialize() on a background thread, as described in the Get Started guide. If you are already doing so, you don't need to enable the optimization flag. After enabling the above mentioned flags also if the ANR issue still persists then kindly provide the below information as requested earlier. 

  • The full stack trace
  • Steps to reproduce
  • Sample app reproducing the issue(with affected app ID, ad unit ID, SDK version)

You can provide the following details via reply privately to the author option or directly provide it to this link

This message is in relation to case "ref:!00D1U01174p.!5004Q02vH1St:ref" (ADR-00288017)

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5



Reply all
Reply to author
Forward
0 new messages