如何解决 http 和站点行为:android 应用程序中的导航错误?

How to resolved http and Site Behavior: Navigation error in android app?(如何解决 http 和站点行为:android 应用程序中的导航错误?)

本文介绍了如何解决 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.

我尝试在清单中使用它

   <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 (app)

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. 只是请求谷歌这是一个错误,有时谷歌会修复这个无需更改应用即可发出问题.

  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 应用程序中的导航错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:如何解决 http 和站点行为:android 应用程序中的导航错误?

基础教程推荐