在Ubuntu上使用cordova构建meteor应用程序

在Ubuntu上使用cordova构建meteor应用程序,cordova,meteor,cordova-plugins,Cordova,Meteor,Cordova Plugins,我正在尝试在Ubuntu 16.04上为Android构建Meteor应用程序。我的问题是命令 meteor build '~/MeteorApp' --server=http://myIP 产生以下错误: Failed to install 'cordova-plugin-meteor-webapp':Uh oh! "~/MeteorApp/.meteor/local/cordova-build/platforms/android/src/

我正在尝试在Ubuntu 16.04上为Android构建Meteor应用程序。我的问题是命令

meteor build '~/MeteorApp' --server=http://myIP
产生以下错误:

Failed to install 'cordova-plugin-meteor-webapp':Uh oh!                          
"~/MeteorApp/.meteor/local/cordova-build/platforms/android/src/com/meteor/webapp/WebAppLocalServer.java" already exists!

我的一个朋友在他的Mac上也做了同样的事情,他没有这样的问题,所以我不确定这是否是因为Ubuntu。。。非常感谢您的帮助。

在构建之前,您是否清空了
~/MeteorApp
文件夹

如果这是Meteor项目源所在的文件夹,则应尝试为
build
命令指定不同的输出文件夹

最后,Meteor有时很难重新安装Codova插件(如果你更改了应用程序名,也会有系统地重新安装)。只需完全删除
.meteor/local/codova build
文件夹,让meteor从头开始重新构建,在大多数情况下就足够了