Wednesday, March 04, 2015

Android studio E2E compilation issues

If you use Latest Android studio 1.1.0,

If you notice end to end tests taking far more time to compile than it was before,


You should do the following,

1. Goto run/debug configurations
2. Select Gradle-aware Make step,



3. Edit it and Add only this task,

assembleX86DebugAndroidTest

(Note: Here the "X86" is the build flavour. So this tasks depends on the flavour you have specified in your gradle build)



Voila !

Compilation times reduced to seconds from minutes.

But remember, this only compiles tests.