gpt4 book ai didi

cordova - ionic 构建android的错误: copyFileSync: could not write to dest file

转载 作者:行者123 更新时间:2023-12-03 15:06:06 27 4
gpt4 key购买 nike

当我使用命令时:ionic cordova build android这是我得到的:

cp: copyFileSync: could not write to dest file (code=ENOENT):/Users/mehdigriche/work/cam1/test/platforms/android/res/xml/config.xml

Parsing /Users/mehdigriche/work/cam1/test/platforms/android/res/xml/config.xml failed (node:2306) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open '/Users/mehdigriche/work/cam1/test/platforms/android/res/xml/config.xml'

[10:50:14] lint finished i

最佳答案

今天早上我遇到了同样的问题,我的(相当激烈的)解决方案是这样的:

  • 移除平台:
  • ionic cordova platform rm android
  • 从您的应用程序文件夹中删除以下文件夹:platforms , plugins & www
  • 运行以下命令确保您的依赖项可用:npm install
  • 重新添加平台,此步骤将重新创建上面步骤 2 中删除的文件夹:
  • ionic cordova platform add android
  • 最后,构建您的应用程序:
  • ionic cordova build android

    关于cordova - ionic 构建android的错误: copyFileSync: could not write to dest file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48006196/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com