Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android API 29 webview网络::错误\u明文\u不允许_Android_Ssl Certificate_Android Webview_Network Security_Cleartext - Fatal编程技术网

Android API 29 webview网络::错误\u明文\u不允许

Android API 29 webview网络::错误\u明文\u不允许,android,ssl-certificate,android-webview,network-security,cleartext,Android,Ssl Certificate,Android Webview,Network Security,Cleartext,在我的webview中,我加载了一个html,它是一个字符串,如下所示: myWebView.loadData(htmlTemplate, "text/html", "utf-8"); 这将显示一个特定的内容,其中有一个按钮。单击按钮时,应加载url: http://10.5.6.13:9090/ 但是它失败了,错误net::ERR\u CLEARTEXT\u不允许 我已经尝试了所有流行的建议答案,建议添加: android:usesCleartextTraffic="true" 或覆盖网

在我的
webview
中,我加载了一个
html
,它是一个字符串,如下所示:

myWebView.loadData(htmlTemplate, "text/html", "utf-8");
这将显示一个特定的内容,其中有一个按钮。单击按钮时,应加载url:

http://10.5.6.13:9090/
但是它失败了,错误
net::ERR\u CLEARTEXT\u不允许

我已经尝试了所有流行的建议答案,建议添加:

android:usesCleartextTraffic="true"
或覆盖网络安全配置:

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <domain-config cleartextTrafficPermitted="true">
        <domain includeSubdomains="true">10.5.6.13</domain>
    </domain-config>
</network-security-config>

10.5.6.13
以下是已尝试过的答案列表:

还有很多其他流行的答案,但仍然一无所获