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

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)