0

这是我的network_security_config.xml


<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <debug-overrides>
        <trust-anchors>
            <certificates src="user"/>
        </trust-anchors>
    </debug-overrides>
</network-security-config>

这是错误:

“错误”:{ JS:“originalStack”:“错误:java.net.ConnectException:无法连接到 /192.168.1.67:5000\n 在新的 ZoneAwareError (file:///data/data/org.nativescript.ngsample /files/app/vendor.js:91976:33)\n 在 onRequestComplete (file:///data/data/org.nativescript.ngsample/files/app/vendor.js:98865:34)\n 在 Object. onComplete (文件: node_modules@nativescript\core\http\http-request\http-request.android.js:43:0)" JS: } JS: }

我曾经使用tns run android所有设备和模拟器。

而且我有自己的 CA 。在模拟器中运行良好,但在物理设备中运行良好。我做错了什么?

4

0 回答 0