Android & Maven: Speed up project compilation and deploy

android, maven

Solution

The answer is somehow strange, but Jake Wharton advised to move to gradle-builds which are truly incremental. Also using Genymotion instead of SDK emulators and USB-devices gave me much needed decrease in deploy time.

So now my build time decreased from ~1m to ~10-20sec.

Problem

Is there a way to speed up the compilation and deployment to device of the android project using maven? I tested build time of a blank android project (created from command line using 'android create project') in IntelliJ Idea - it took me 4 seconds from pressing the 'run' button until launching the app on device. Then I added maven support to it - now it takes almost 7 seconds. For bigger projects it takes even more time. For example, blank project with ActionBarSherlock dependency added takes about 25-30 seconds to compile, deploy and run. Is there a way to speed up this process? I would like to hear answers from Square developers (especially Jake Wharton) :) how long does it take your android projects to compile?

Original source

Related problems