android - 错误:ssl_client_socket_impl.cc(946) 握手失败;返回 -1,SSL 错误代码 1,android 上的 net_error -202
问题描述
我已经使用电容器将 Web 应用程序转换为 android 应用程序,我的 API 正在 HTTPS 模式下运行,但是当我尝试访问 API 时,我遇到了错误。
[ERROR:ssl_client_socket_impl.cc(946)] handshake failed; returned -1, SSL error code 1, net_error -202
我不不,我在哪里做错了,
我的 AndroidMainfest.xml
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="true">
network_security_config.xml
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">api.**.*****.com</domain>
</domain-config>
</network-security-config>
解决方案
从 Google Play 更新“Android System Webview”应用
推荐阅读
- javascript - 在 ReactJS 中检查本地存储是否有对象
- flutter - 将listview小部件中的文本转换为flutter中的json
- xml - XSLT 1.0 中的意外令牌问题,否则元素
- django - Cron 作业 Django Elastic Beanstalk
- javascript - 为什么javascript回调函数没有执行?
- php - 将 PHP HTTP 请求转换为 Guzzle
- oop - raku 内置访问器方法可以被子类覆盖吗?
- python - TypeError:输入 z 必须是 2D,而不是 3D
- node.js - 如何在sequelize中从json数组中插入多条记录?
- angular - 无法在离子 4+ 中将离子选项卡按钮显示为活动状态