Question

I'm just posting this and self-answering it for posterity's sake.

I looked around the internet and couldn't find an answer, but was able to get around it. So I thought I'd throw it up in case anyone else searches for it.

When building an AIR mobile app from FlashDevelop and coming across this error:

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.
Compliation failed while executing : ADT

APK setup creation FAILED.
Was it helpful?

Solution

In "Run.bat" under

:target

change from

goto ios-debug

to

goto ios-test

If that doesn't work:

reboot

rebuild

It can be finnicky, but this is how I got it working. Changing the java config file's memory allocation did nothing.

OTHER TIPS

  • open FlexSDK/bin/jvm.config
  • change Xmx384m to Xmx512m
  • reboot computer
  • If that does not work, check whether the system disk space is too small, or the virtual memory settings to other disk space under
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top