小编Mik*_*mpi的帖子

如何解决源路径不存在:resources / android / xml / network_security_config.xml

我确实使用ionic 4构建。

离子科尔多瓦建立Android

得到这个错误

科尔多瓦建立Android

源路径不存在:resources / android / xml / network_security_config.xml [错误]运行子进程cordova时发生错误。

我从config.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:networkSecurityConfig="@xml/network_security_config" />
    </edit-config>
    <resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
Run Code Online (Sandbox Code Playgroud)

package.json

    {
      "name": "morenito",
      "version": "0.0.1",
      "author": "Ionic Framework",
      "homepage": "https://ionicframework.com/",
      "scripts": {
        "ng": "ng",
        "start": "ng serve",
        "build": "ng build",
        "test": "ng test",
        "lint": "ng lint",
        "e2e": "ng e2e"
      },
      "private": true,
      "dependencies": {
        "@angular/animations": "~8.0.1",
        "@angular/cdk": "8.0.1",
        "@angular/material": "8.0.1",
        "@angular/common": "~8.1.2",
        "@angular/compiler": "~8.1.2",
        "@angular/core": "~8.1.2",
        "@angular/forms": "~8.1.2",
        "@angular/http": "^7.2.2",
        "@angular/platform-browser": "~8.1.2", …
Run Code Online (Sandbox Code Playgroud)

ionic-framework

7
推荐指数
1
解决办法
1244
查看次数

标签 统计

ionic-framework ×1