且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MeteorJS:无法管理在Android模拟器/设备上部署流星应用程序

更新时间:2023-10-20 22:30:16

我发现了几个潜在的问题需要解决。

I've found several potential issues to solve.


  1. 除了Meteor和Cordova之外,您还必须安装Apache Ant和Gradle。

  1. Make sure in addition to Meteor and Cordova you have Apache Ant and Gradle installed.

如果没有运行SUDO, .meteor设置为您的所有权

If not running SUDO, make sure all files in .meteor are set to your ownership

从Android SDK加载AVD设备( android avd ) ,选择设备,点击开始,并确保您选择删除所有用户数据选项

Load the AVD device from the Android SDK (android avd), select device, click start, and make sure you select delete all user data option

如果流星运行android仍然无法加载应用程序, .meteor / local / cordova-build / platforms / android / cordova 并输入 ./ build

if meteor run android still fails to load the app, in terminal go to the .meteor/local/cordova-build/platforms/android/cordova and type ./build You can watch the build process for errors and make sure the .apk is created

假设构建正确,请输入 ./ run ,它现在应该加载到模拟器。

Assuming the build works ok, type ./runand it should now load up fine into the emulator. If not, look back through the run output and see where things are breaking down.

code> meteor run android 。如果无法更新应用程式,请再次执行步骤3(清除AVD使用者资料)

It should then work when you type meteor run android. If that fails to update the app, perform step 3 again (clear the AVD user data)

任何事情,就像我能告诉的流星。我已经测试这个在一个virtualbox和它工作正常,尽管评论说它不会工作。

None of this had anything to do with Meteor as far as I could tell. I have testing this on a virtualbox and it worked fine despite comments saying it wouldn't work.