Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StrictMode policy violation #686

Open
tmxdyf opened this issue May 19, 2024 · 1 comment
Open

StrictMode policy violation #686

tmxdyf opened this issue May 19, 2024 · 1 comment

Comments

@tmxdyf
Copy link

tmxdyf commented May 19, 2024

version:
com.google.android.gms:play-services-ads-base@@23.1.0:2

log:
StrictMode policy violation: android.os.strictmode.IncorrectContextUseViolation: WindowManager should be accessed from Activity or other visual Context. Use an Activity or a Context created with Context#createWindowContext(int, Bundle), which are adjusted to the configuration and visual bounds of an area on screen. at android.os.StrictMode.onIncorrectContextUsed(StrictMode.java:2260) at android.app.ContextImpl.getSystemService(ContextImpl.java:2126) at android.content.ContextWrapper.getSystemService(ContextWrapper.java:910) at com.google.android.gms.ads.internal.activeview.f.<init>(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:34) at com.google.android.gms.ads.nonagon.ad.event.fx.i(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:16) at com.google.android.gms.ads.nonagon.ad.nativead.q.s(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:22) at com.google.android.gms.ads.nonagon.ad.nativead.an.A(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:38) at com.google.android.gms.ads.nonagon.ad.nativead.an.z(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:28) at com.google.android.gms.ads.nonagon.ad.nativead.bn.bN(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:39) at com.google.android.gms.ads.internal.formats.client.l.bS(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:213) at m.alw.onTransact(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:21) at android.os.Binder.transact(Binder.java:1169) at com.google.android.gms.internal.ads.zzazo.zzdc(com.google.android.gms:play-services-ads-base@@23.1.0:2) at com.google.android.gms.internal.ads.zzbhg.zzdz(com.google.android.gms:play-services-ads-lite@@23.1.0:3) at com.google.android.gms.ads.nativead.NativeAdView.setNativeAd(com.google.android.gms:play-services-ads-lite@@23.1.0:1) at com.google.android.ads.nativetemplates.TemplateView.setNativeAd(TemplateView.kt:207)

@NVentimiglia
Copy link
Member

@tmxdyf Can you share your implementation and steps you took to generate this error ? I have not seen this error before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants