【发布时间】:2016-09-22 23:42:38
【问题描述】:
突然间,我在设备上启动应用时看到了这个问题。 尝试在安卓设备上启动流星时,我一直在苦苦挣扎,没有运气。
我使用meteor run android-device 在设备上运行顺便说一句!
=> Errors executing Cordova commands:
While running Cordova app for platform Android with options --device:
Error: Command failed:
C:\Users\ally\Documents\GitHub\Portal-Meteor\portalMeteor\.meteor\local\cordova-build\platforms\android\cordova\run
--device --device
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at
http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error code 1 for command: cmd with args:
/s,/c,"C:\Users\ally\Documents\GitHub\Portal-Meteor\portalMeteor\.meteor\local\cordova-build\platforms\android\gradle
w
cdvBuildDebug -b
C:\Users\ally\Documents\GitHub\Portal-Meteor\portalMeteor\.meteor\local\cordova-build\platforms\android\build.gradle
-PcdvBuildArch=arm -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" undefined
at ChildProcess.exitCallback (C:\tools\utils\processes.js:151:23)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
C:\Users\ally\AppData\Local\.meteor\packages\meteor-tool\1.3.2_4\mt-os.windows.x86_32\isopackets\cordova-support\npm\nod
e_modules\meteor\promise\node_modules\meteor-promise\promise_server.js:116
throw error;
^
ExitWithCode:1
【问题讨论】:
-
似乎 JVM 没有足够的 RAM。看看[这个问题]。要么你的 PC 没有足够的可用 RAM,要么你的程序占用太多(不太可能),要么你应该增加 JVM 可用的 RAM 量(很可能)。
-
我看不到你所指的问题,我的电脑也有 16 GB 的内存,你能建议一些参考资料来增加 JVM 的内存吗?
-
是的,我忘了加the link。
标签: android meteor meteor-cordova