Search code examples
androidcouchdbtouchdb

How do I avoid getting out-of-memory errors when compiling TouchDB for Android?


I'm trying to use TouchDB for Android but when I try to compile the sample project or make one myself, it says it couldn't compile the dex because it ran out of memory or exceeded the heap size. Then Eclipse crashes, yada yada yada I end up waiting 10 minutes every time I try to change something to fix the issue.

I've got a pretty generous heap size set, and TouchDB isn't a huge project. So I think that I must be missing some critical bit of the puzzle.

Has anybody else had this problem and found a solution? I'm using Eclipse (version Juno) on a Mac.


Solution

  • start eclipse with parameters -vmargs -Xmx1024M