haoyangw / terminal-ide

Automatically exported from code.google.com/p/terminal-ide
0 stars 0 forks source link

Dx produces OutOfMemory exception #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
When i'm trying to build an android project which uses external libraries, dx 
gives an OutOfMemory excetption. I don't think libraries would be too large 
(it's only 250kb).

What is the expected output? What do you see instead?
Excpected output is nothing, i see the error message instead.

What version of the product are you using? On what operating system?
The most recent version, on Android 3.1.

Please provide any additional information below.
I've tried also to allow more memory to the foreground application, with 
RomToolbox, but it didn't helped.

Or is it possible that i've done something wrongly?

Original issue reported on code.google.com by levelibe...@gmail.com on 14 Mar 2012 at 1:19

GoogleCodeExporter commented 9 years ago
Have you tried to increase the memory allocated when you run dx ?

DX is a script that calls a java class. Try 

# cat `which dx`

Then increase the memory parameter to dalvikvm.

Original comment by spartacu...@gmail.com on 16 Mar 2012 at 12:30

GoogleCodeExporter commented 9 years ago
Thankyou, it works fine with 40 mb minimal heap.

Original comment by levelibe...@gmail.com on 16 Mar 2012 at 2:14