Ionic framework 图像未加载到Ionic 3中
我在做离子3。我在项目中更新了ionic cli、nodejs和cordova版本。更新版本后,图像不会加载到android中。但它在浏览器中运行良好。我应用了所有的建议,但还没有确定 我遇到的错误。Ionic framework 图像未加载到Ionic 3中,ionic-framework,ionic3,Ionic Framework,Ionic3,我在做离子3。我在项目中更新了ionic cli、nodejs和cordova版本。更新版本后,图像不会加载到android中。但它在浏览器中运行良好。我应用了所有的建议,但还没有确定 我遇到的错误。 Appi_demo_a.png:1 GET http://localhost/assets/icon/Appi_demo_a.png net::ERR_CONNECTION_REFUSED 我正在努力修理它 将其添加到confix.xml中 <edit-config file="
Appi_demo_a.png:1 GET http://localhost/assets/icon/Appi_demo_a.png net::ERR_CONNECTION_REFUSED
我正在努力修理它
将其添加到confix.xml中
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:usesCleartextTraffic="true" />
<application android:networkSecurityConfig="@xml/network_security_config" />
</edit-config>
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system"/>
</trust-anchors>
</base-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">localhost</domain>
<domain includeSubdomains="true">spiapi.demo.com</domain>
</domain-config>
</network-security-config>
Ionic CLI : 6.12.1
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : 5.0.4, android 9.0.0, browser
Cordova Plugins : cordova-plugin-ionic-webview 5.0.0, cordova-plugin-ionic 5.4.7, (and 17 other plugins)
NodeJS : v14.15.0
npm : 6.14.8