There's a better way. You can get faster compile times while keeping AS's
lint checks for your real minimum SDK.

Define your minSdk as a function in your project's build.gradle and then
use it when compiling:
https://gist.github.com/goncalossilva/a68cc0cc46b9ae015bc1b956bfa8d9ab

Hope this helps!

On Fri, May 6, 2016 at 6:29 PM thierryd <[email protected]> wrote:

> Hi,
> In his recent article/video (
> https://medium.com/google-developers/instant-run-how-does-it-work-294a1633367f#.n0d4idmri),
> Reto says that creating a flavor that targets API 21 can make the build
> faster.
>
> I thought that the recent improvement in Android Studio already made this
> unnecessary. I thought that when AS ask the user to select the device to
> deploy on, if the device is API 21 or greater, the multidex phase is not
> executed.
>
> I have a large app targeting API 17. When I run it on API 21, the instant
> run build/deploy cycle is 13s. It's the same if I use a flavor that targets
> API 21.
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to