如何解决HTTP和网站行为:Android应用程序中的导航错误? [英] How to resolved http and Site Behavior: Navigation error in android app?

查看:189
本文介绍了如何解决HTTP和网站行为:Android应用程序中的导航错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我将android 9更新为android 10,但不幸的是,该应用有时会崩溃并给出此错误.

Recently I updated android 9 to android 10 but unfortunately, the app sometimes crashes and gives this error.

com.fgapps.maker E/chromium: [ERROR:cookie_manager.cc(137)] 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.

我尝试在manifiedt中使用它

I tried using this in manifiest

   <application
        android:hardwareAccelerated="false"
        android:networkSecurityConfig="@xml/network_security_config"
        android:usesCleartextTraffic="true"
        ....>

    <uses-library
        android:name="org.apache.http.legacy"
        android:required="false" />

我还添加了build-gradle(应用程序)

I also added build-gradle (app)

android {
    useLibrary 'org.apache.http.legacy'
    ...}

,而且即使我检查了所有链接是否正常运行,AdMob仍由于 Site Behavior:Navigation 违规而拒绝了我的应用程序,因此如何解决此问题.谢谢

and also AdMob rejects my app due to Site Behavior: Navigation violation even I checked all links working properly, so How to resolve this issue. thanks

推荐答案

我的三个朋友通过执行以下步骤解决了错误.

Three of my friends resolved errors by following these steps.

  1. 仅向Google请求,这是一个错误,有时Google会解决此问题问题,而无需更改应用程序.

  1. Just request to google this is an error sometimes google fixes this issue without changes in the app.

如果无法从步骤1中修复,则可能需要从MainActivity中删除广告,尤其是非页内广告.

If not fix from step-1 then it maybe needs to remove ads from MainActivity, especially Interstitial ad.

,并检查应用程序是否取消链接远程资源.

and also check the app for unlink remote resources.

这篇关于如何解决HTTP和网站行为:Android应用程序中的导航错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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