我想更改我的默認圖示和啟影片面,所以我用新的替換了舊的icon.png和splash.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)
是什么導致了這個問題?
注意:我不在任何防火墻后面或使用代理。
uj5u.com熱心網友回復:
離子服務器似乎沒有回應。在這種情況下,您可以使用 NPM 包cordova-res,它允許您離線生成資源。適用于 Android 和 iOS。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/381777.html
