【问题标题】:Ionic 3 Cordova Resource Network Connectivity ErrorIonic 3 Cordova 资源网络连接错误
【发布时间】:2022-01-10 04:07:58
【问题描述】:

我想更改我的默认图标和启动屏幕,所以我用新文件替换了旧的 icon.pngsplash.png 文件并运行以下命令

ionic cordova resources android

它失败并给出以下消息

√ Collecting resource configuration and source images - done!
√ Filtering out image resources that do not need regeneration - done!
× Uploading source images to prepare for transformations - failed!
[ERROR] Network connectivity error occurred, are you offline?

        If you are behind a firewall and need to configure proxy settings, see:
        https://ionicframework.com/docs/cli/configuring.html#using-a-proxy

        Error: getaddrinfo ENOTFOUND res.ionic.io res.ionic.io:443
            at errnoException (dns.js:50:10)
            at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)

是什么导致了这个问题?

注意:我没有使用任何防火墙或代理。

【问题讨论】:

    标签: android cordova build proxy ionic3


    【解决方案1】:

    离子服务器似乎没有响应。在这种情况下,您可以使用 NPM 包cordova-res,它允许您离线生成资源。适用于 Android 和 iOS。

    【讨论】:

      猜你喜欢
      • 2021-12-21
      • 2020-02-10
      • 2016-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-08
      • 2018-11-13
      • 2014-08-15
      相关资源
      最近更新 更多