Meteor cordova构建失败,因为com.meteor.cordova-update.没有找到TGZ



我一直在尝试为Android构建一个流星cordova应用程序&iOS。当我尝试着只为iOS创造游戏时,一切都运行得很顺利。之后我添加Android平台,然后运行

meteor build ~/builds --server myserver.meteor.com

我得到一个非常奇怪的错误:

Error while building for mobile platforms: Error running curl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 181 0 181 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 145 0 --:--:-- 0:00:01 --:--:-- 145 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0Warning: Failed to create the file Warning: /Users/idoivri/Sites/projects/alternative-tel-aviv/.meteor/local/cordo Warning: va-build/local-plugins/com.meteor.cordova-update.tgz: No such file or Warning: directory curl: (23) Failed writing body (0 != 833)

以及com.meteor.cordova-update是什么。为什么它在构建Android APK时似乎会导致错误?

我也遇到了同样的问题,不同之处在于iOS无法正常运行。删除cordova平台并重置项目对我有效:

meteor remove-platform ios
meteor reset
meteor add-platform ios

实际上,问题可能源于Cordova中包的变化性质,以及我当时使用的Meteor版本1.1.0.3。

运行Meteor update将版本升级到1.2以彻底解决问题。根据Meteor的开发人员的说法,在Meteor 1.2中,整个Cordova应用程序的打包都被重新完成了。

最新更新