I'm developing my first game for android. I am using milkman ane in my project. It was working fine, until the new version (2.1.0).
So now I am getting an OutOfMemoryError
on the packaging apk. This might be relevant, I use flashdevelop IDE. I had found some solutions to increase java heap space (by putting params -Xms1024M -Xmx1024M). But they didn't help in my situation.
Here is what I have tried:
1) Set the parameters to sdk/bin/jvm.config: no result
2) Put the java parameters into adt.bat in flex sdk. But it looks like @java -jar "%~dp0\..\lib\adt.jar" %*
. So this doesn't help.
3) I've found that parameters should be set into "program files(x86)/ADT/bin/adt.bat". But there is nothing like that on my computer. I mean there are many adt.bat files in different apps, but they all look like in second solution. I couldn't find the main(?) adt.bat.
4) I've tried to put parameters into project/bat/packager.bat (where adt is called) but it causes the package to crash. I've tried to put parameters in different places of adt call, but every time - same result.
5) I've even added _JAVA_OPTIONS environment variable. Becauses message "picked up _JAVA_OPTIONS -xmx1024M" But...Then still the same error.
I really need somebody to help me. Where could my mistake be?