Codenameone windows phone 8 构建因 XMLVM 运行 内存不足而失败

Codenameone windows phone 8 build failing due to XMLVM running out of memory

我在失败 windows phone 8 日志的错误日志中看到此消息。

[01/19/16 12:18:58.565]    ERROR: Oh no, XMLVM needs more memory. Try running with -Xmx1G or more.

你能帮我设置 -Xmx 吗?如果这不是问题,那么日志中也有更高的:

[01/19/16 12:04:20.276]    ERROR: Couldn't create node for com.codename1.impl.ImplementationFactory
[01/19/16 12:04:20.276]    ERROR: Couldn't create node for com.codename1.impl.ImplementationFactory

下面这个(但我认为这是 XMLVM 未完成就退出的症状):

Main.cs(10,28): error CS0234: The type or namespace name 'Object' does not exist in the namespace 'java.lang' (are you missing an assembly reference?) [C:\Users\Shai\AppData\Local\Temp\build3939039400849280052xxx\App\App\App.csproj]
Main.cs(10,45): error CS0234: The type or namespace name 'Runnable' does not exist in the namespace 'java.lang' (are you missing an assembly reference?) [C:\Users\Shai\AppData\Local\Temp\build3939039400849280052xxx\App\App\App.csproj]

正在浏览 Codename One discussion group I found this: https://groups.google.com/d/msg/codenameone-discussions/gyjS81rpR3w/nSVxzWOJdXEJ

所以我想只要添加构建提示 win.doubleRam=true 就可以解决这个问题。