我正在使用 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
usesCleartextTrafficis only used in API level 23 and higher (current min is 22)
我能做什么来解决这个问题?
我在申请中遇到了同样的问题,您是否解决了这个问题? 谢谢!