snorkel123 / google-play-game-services-ane

Adobe Air Native Extension for Google Play Game Services
MIT License
19 stars 9 forks source link

dx tool failed: UNEXPECTED TOP-LEVEL ERROR: java.lang.OutOfMemoryError #1

Closed canaksoy closed 10 years ago

canaksoy commented 10 years ago

Flash CC AIR SDK 13.0.0.83 for Android

snorkel123 commented 10 years ago

Hi, It seems that your Adobe AIR adt tool is out of memory. Note: instructions below are for Windows only. First you need to find flexsdk folder. In sub folder "bin" you will find "adt.bat" (flexsdk/bin/adt.bat). Open it in Notepad. It will look like this: @java -jar "%~dp0..\lib\adt.jar" %* You need to change it to @java -jar -Xms1024m -Xmx1024m -XX:MaxPermSize=256m "%~dp0..\lib\adt.jar" %* Play with numbers so that your project can complile

canaksoy commented 10 years ago

I am on Mac OS and using Flash CC AIR SDK 13. is /Applications/Adobe Flash CC/AIR13.0/bin/adt true path/file? I modified it but nothing changed.

canaksoy commented 10 years ago

java -Dfile.encoding=UTF-8 -jar -d64 -Xms6g -Xmx6g "$here/../lib/adt.jar" "$@"

solves!