A
A
Anton2015-04-13 16:21:56
Android
Anton, 2015-04-13 16:21:56

How to increase build speed of android app?

Today I wrote my hello world for android.
I'm using Android Studio 1.1
First, some dependencies on gradle were resolved.
Then the virtual device was launched. The first build happened in 8 minutes....
I changed the size, the position of the inscription "hello world" by a couple of pixels, I pressed RUN to check the result.
Voila... 4 minutes.
c961009b45af47ecb102010d401123dc.png
4 minutes to restart tiny changes in the program. During this time, I managed to drink coffee.
Question: Is this normal?
"it" will always work like this? Or is there something wrong with me?
Those who write for android, share your experience, please!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
vitvov, 2015-04-13
@fattan

You can speed up the build if you enable offline mode for gradle: Preferences... -> Compiler -> Gradle -> Offline mode.

Y
Yuri Yarosh, 2015-04-13
@voidnugget

Android Studio already uses the Gradle Demon by default - it won't get any faster.
It is necessary to buy a bowl faster and put SSD'shny RAID.

M
maaGames, 2015-04-13
@maaGames

Don't turn off the virtual machine and you won't have to wait five minutes. x86 image is much faster than ARM.

R
raiboon, 2015-04-13
@raiboon

SSD + more memory + i7 fresher - everything compiles almost instantly

O
one pavel, 2015-04-13
@onepavel

Set gradle parameter to parallel=true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question