[Android] Fatal IllegalStateException after updating IMA SDK to 3.30.0

83 views
Skip to first unread message

Alex

unread,
Apr 5, 2023, 1:02:28 PM4/5/23
to Interactive Media Ads SDK
After updating IMA SDK to 3.30.0 I'm seeing uncaught IllegalStateException when calling `AdsLoader.requestAds()`:

```
2023-04-05 19:57:13.270  6515-6794  AndroidRuntime                 and....media3.demo.main  E  FATAL EXCEPTION: pool-6-thread-3
                                                                                               Process: androidx.media3.demo.main, PID: 6515
                                                                                               java.lang.IllegalStateException: Android TV ads library should be called from an Android TV app
                                                                                                at com.google.android.gms.internal.atv_ads_framework.zzd.zzb(com.google.android.tv:tv-ads@@1.0.0-alpha01:27)
                                                                                                at com.google.android.tv.ads.zzg.run(com.google.android.tv:tv-ads@@1.0.0-alpha01:1)
                                                                                                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
                                                                                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
                                                                                                at java.lang.Thread.run(Thread.java:1012)
```

This happens both in our app and in ExoPlayer's demo app (after updating its IMA version). App is running on Samsung Galaxy S20+ with Android 13.

IMA SDK

unread,
Apr 10, 2023, 6:29:53 AM4/10/23
to aroch...@gmail.com, ima...@googlegroups.com

Hi Alex,

Thank you for raising your concern to the IMA SDK forum.

Upon checking our ExoPlayerExample found here: https://github.com/googleads/googleads-ima-android, I was not able to encounter the error your reported. For us to have a better understanding of your issue, kindly provide the following details:

  • A copy of your app
  • Your version of the ExoPlayer's demo app (after updating its IMA version)
  • Steps to reproduce the issue
  • A screen recording of 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 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=IMA+SDK&entry.460850823=5004Q00002kSIV4QAO&entry.80707362=00173691
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.

Looking forward to your response.

Regards,

Google Logo IMA SDK Team


ref:_00D1U1174p._5004Q2kSIV4:ref
Reply all
Reply to author
Forward
0 new messages