握手失败;返回 -1,SSL 错误代码 1,net_error -202 Android Studio 中的错误

问题描述 投票:0回答:1

我正在使用 Web Angular 应用程序中的 Capacitor/android 制作 Android 应用程序,该 Web 应用程序工作正常,但是当我在 Android 中运行该应用程序时,它会出现以下错误

[ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -202
File: https://localhost/vendor.js - Line 263078 - Msg: gmsServices_Authentication: login()  http reply error:  status: 0; statusText: Unknown Error
[ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -202

我也将以下代码添加到我的 AndroidManifect.xml 文件中 -

android:usesCleartextTraffic="true"

上面的代码返回给我一个警告:

Attribute 
usesCleartextTraffic
is only used in API level 23 and higher (current min is 22)
我能做什么来解决这个问题?

android angular android-studio http capacitor
1个回答
0
投票

我在申请中遇到了同样的问题,您是否解决了这个问题? 谢谢!

© www.soinside.com 2019 - 2024. All rights reserved.