问题
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.
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" />
I also added build-gradle (app)
android {
useLibrary 'org.apache.http.legacy'
...}
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
来源:https://stackoverflow.com/questions/63111960/how-to-resolved-http-and-site-behavior-navigation-error-in-android-app