Creating an application for medium size and Android is very slow

My application has many external .jars, android libraries and a lot of code. Setting up a project (I'm using eclipse) is terrible. Cleaning / assembly takes a few minutes. And after each recovery, I have to restart eclipse, otherwise it just hangs in the second build. I am afraid that soon I will not be able to build it! Providing more memory for Eclipse has no effect.

On the other hand, there is no problem creating small Android applications.

I am in Windows Vista, eclipse-java-galileo-SR2, Android SDK Tools (version8), Core 2 Duo 2GHz.

Q: It would be great to hear from other developers having fairly large projects if you have the same problems and how do you solve them?

Another problem I see is that compilation sometimes freezes because it cannot interact with the emulator. If I close the emulator, it may end.

+3
source share
1 answer

I added more physical memory. Launch an eclipse with the following parameters:

eclipse.exe -vmargs -Xmx700M

Now I have more than enough memory. ~ 1 GB of additional free memory is available.

The reconstruction of the project takes ~ 1 m 10, which is about two times faster than before, but on the other hand it is still not ideal.

Another positive effect is that I no longer need to restart eclipse after each rebuild.

+1
source

Source: https://habr.com/ru/post/1785772/


All Articles