S
S
Sergey Ivanchenko2016-06-09 11:16:34
Android
Sergey Ivanchenko, 2016-06-09 11:16:34

What is the normal build speed for an Android app?

Tell me, is building a project for 3-5 minutes after changing each line of the project in Android is a normal practice in the Android world? I mostly work in Java Server Side development where it takes 5-10 seconds to rebuild and it seems very strange for our Android team to wait 3-5 minutes after changing one line. Using Android Studio 2.1.1 and Gradle 2.1.0

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Kulikov Alexander, 2016-06-09
@mstr

Firstly, in Android Studio, starting from version 2.0, Instant Run mod appeared, read more about it, it allows you to upload changes almost on the fly, without rebuilding the project.
Secondly, if you have multiDex enabled in the build file (multiDexEnabled true), then you can increase the hip size for this, in the android block of the module build file, add:

dexOptions {
      incremental true
      javaMaxHeapSize "4g"
  }

In general, 3-5 minutes for a complete assembly is not a very frightening result.

G
GavriKos, 2016-06-09
@GavriKos

Better tell me the configuration of the computer on which you build.

S
Sergey Ivanchenko, 2016-06-09
@mstr

Ubuntu 16.04
AMD FX(tm)-8350 Eight-Core Processor
16GB RAM
SSD KINGSTON SH103S3120G-NV
8GB RAM allocated on gradle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question