更新到Android 11后,Admob中出现严格的安全Cookie策略错误 [英] Strict Secure Cookie policy error in Admob after updating to Android 11

查看:165
本文介绍了更新到Android 11后,Admob中出现严格的安全Cookie策略错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新我的应用程序以使用api级别30(Android R,11)进行编译后,我看不到admob测试广告,并且在日志中收到此错误:

After updating my app to compile with api level 30 (Android R, 11), I can't see admob test ads, and I'm receiving this error in the log:

严格的安全Cookie策略不允许为以下内容设置安全Cookie http://googleads.g.doubleclick.net/适用于定位为> = R的应用.为此网址使用"https:"方案,或者省略安全"Cookie值中的指令.

Strict Secure Cookie policy does not allow setting a secure cookie for http://googleads.g.doubleclick.net/ for apps targeting >= R. Please either use the 'https:' scheme for this URL or omit the 'Secure' directive in the cookie value.

我正在使用最新的admob版本,但没有"org.apache.http.legacy"gradle或清单中的引用.

I'm using the last admob version, and I dont have "org.apache.http.legacy" references in gradle or manifest.

推荐答案

这可能来自网络视图

This might come from the webview cookie_manager.cc.

此外: https://www.chromestatus.com/feature/5633521622188032

此处存在相同问题:如何解决http和网站行为:Android应用程序中的导航错误?

除非他们按照预期设置了cookie,否则它可能会暂时损坏.

It might be temporarily broken, unless they'd set the cookie as expected.

这篇关于更新到Android 11后,Admob中出现严格的安全Cookie策略错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆