gpt4 book ai didi

android - 无法构建 cordova meteor 应用程序(错误 : ENOENT)

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:14:01 25 4
gpt4 key购买 nike

我正在尝试使用 meteor build 构建我的 android meteor 应用程序,但是当我运行命令时它给了我这个错误。我应该提到部署和 meteor 运行工作正常。

[sqrdcat@localhost assignr]$ meteor build ~/build2 --server=assignly.meteor.com

/home/sqrdcat/.meteor/packages/meteor-tool/.1.0.45.t9p8sg++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/lib/node_modules/fibers/future.js:278
throw(ex);
^
Error: ENOENT, readdir '/home/sqrdcat/Documents/METEOR/assignr/.meteor/local/cordova-build/platforms/android/ant-build'
at Object.Future.wait (/home/sqrdcat/.meteor/packages/meteor-tool/.1.0.45.t9p8sg++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/lib/node_modules/fibers/future.js:398:15)
at Object.wrapper (/home/sqrdcat/.meteor/packages/meteor-tool/.1.0.45.t9p8sg++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/files.js:1330:24)
at findApkPath (/home/sqrdcat/.meteor/packages/meteor-tool/.1.0.45.t9p8sg++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands.js:956:30)
at /home/sqrdcat/.meteor/packages/meteor-tool/.1.0.45.t9p8sg++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands.js:941:21
at Array.forEach (native)
at Function._.each._.forEach (/home/sqrdcat/.meteor/packages/meteor-tool/.1.0.45.t9p8sg++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at buildCommand (/home/sqrdcat/.meteor/packages/meteor-tool/.1.0.45.t9p8sg++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands.js:924:29)
at Command.main.registerCommand._.extend.name [as func] (/home/sqrdcat/.meteor/packages/meteor-tool/.1.0.45.t9p8sg++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands.js:738:12)
at /home/sqrdcat/.meteor/packages/meteor-tool/.1.0.45.t9p8sg++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/main.js:1345:23

最佳答案

以下对我有用,我不确定是什么真正解决了它 - 但我的猜测是这是一个“权限”问题,因为只有在 sudo 模式下运行命令才能为我修复它:

  1. rm -rf .meteor/local/cordova-build/
  2. sudo meteor remove-platform android
  3. sudo meteor add-platform android
  4. sudo meteor build .build --server http://myserver.com

关于android - 无法构建 cordova meteor 应用程序(错误 : ENOENT),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29461356/

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